handler troubles

Eric Chatonet eric.chatonet at sosmartsoftware.com
Sat Feb 4 09:42:06 EST 2006


Hi Ben,

Another tip: avoid to use a number to name a field. This can be  
confusing.
If this is important in your code to refer to a field, just add a  
prefix:

fld "data1"

and retrieve what you need by using (with the above example) char 5  
to -1 of the short name of the target (or what you need)
This formulation will get back the right number even you have 10 000  
fields.

Le 4 févr. 06 à 12:56, Klaus Major a écrit :

> Don't use "value":
>
> ...
>   put hilitedbutton of group "group1" into field "1" of CD X of  
> stack "data sample"
> ## see below...
> ...
>
> This will only return the NUMBER of the hilited button of that group
> 1
> if the the FIRST button in that group is hilited and
> 2
> if it i the second one.

Best Regards from Paris,
Eric Chatonet
------------------------------------------------------------------------ 
----------------------
http://www.sosmartsoftware.com/    eric.chatonet at sosmartsoftware.com/





More information about the use-livecode mailing list