Screen element as parameter

How can I pass a screen element e.g. 'label1" as a method parameter ?
Can’t seem to find it in the help/document section.

yup

FUNCTION doSomething(lbl as Label)
lbl.text="do something"
END FUNCTION
doSomething(label1)
doSomething(label2)

pretty much like any other “variable”

Ofcourse. Thanks. Do you happen to know if I can change the Z-order programmatically?

not in any way that I am aware of

It is possible in Windows using a declare to SetWindowPos().

I am not aware of any equivalent for Mac.