.text is no component.
it's the property of the button object.

how you wanna set it?

in this code it sets the text to corresponding element of $button_array which is from:
$button_array = SPLIT($cmd,";")

you can define whatever inside $cmd or create your own $button_array so you don't need to change the UDF at all.

anyway, this UDF is poorly constructed as it uses global vars and is a PITA to control inside larger script.
_________________________
!

download KiXnet