on mouseUp
put the short name of the owner of the target into tGoup
if word 1 of tGroup = "userbox" then
put word 2 of tGroup into THE_DESIRED_NUMBER
## now do whatever you have to do with THE_DESIRED_NUMBER :-)
end if
end mouseUp
I think in this case it would be cleaner to just set a custom property on each group and retrieve that as needed. That way the names of the controls don't matter. But maybe custom properties aren't the easiest to understand for new users.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
...
if tArray["users"][myID1]["email"] is not empty then
## copy group "usersbox"
## paste group
clone group "usersbox"
set the cNum of IT to myVar
move it to myPosition1 , myPosition2 in timing second
...
Klaus wrote: Fri May 04, 2018 11:32 am
You should check "the short name of the owner of the target".
If it begins with "userbox" then extract word 2 of it and you have the number you want.
After typing your code, the function can't seem to work ~ ~
There is no value display in my field.
What i want is if i click on any of the group , one of the value inside the group will be display into my field.
Thanks for all your responsive help! What i did, i just took all of the solution provided to me and modify some of the code to make the desired outcome i want!!