how to set the textStyle of word 1 of the selection?
Andre.Bisseret
Andre.Bisseret at inria.fr
Tue Mar 16 14:49:53 EDT 2010
Le 16 mars 10 à 18:13, Peter Brigham MD a écrit :
> Not sure if this got through the first time, if so, sorry for any
> duplication...
Yes I received it and replied
>
>
> On a different note, I'm confused about the behavior of full control
> references, eg, fldRef in the above example, which contains a long
> id of a field. The last line of the mouseup handler works, because
> the engine evaluates the variable fldRef before executing the
> command, but if instead of "set the textstyle of word wordNbr of
> fldRef" you do this:
> put word wordNbr of fldRef
> you get the corresponding word of "field id 3521 of card id 1009 of
> stack..." -- ie, the unevaluated string contained in the variable
> fldRef -- and not the word in the field referred to.
I tried replacing " set the textstyle of word wordNbr of fldRef to
"link"
with
put word wordNbr of fldRef
Curiously I got nothing in the message box!?
André
>
> So under what circumstances does Rev evaluate a full control
> reference? It's clearly not in all contexts.
>
More information about the use-livecode
mailing list