Object Reference in Variable?
Scott Rossi
scott at tactilemedia.com
Fri Sep 26 05:40:22 EDT 2008
Recently, Richard Gaskin wrote:
>> I'm having trouble remembering how to get Rev to see object references in
>> variables, as opposed to the variable data. For example, if I script:
>> put the long id of field 1 into tField
>> put the number of lines of tField
>> I'll get '1' in the message box regardless of how may lines field 1
>> contains. I could have sworn there was a way to get this work without using
>> "do" or using "the text of tField". Is my memory faulty?
> The only one I can think of offhand is "value", which executes at about
> the same speed as "do":
> put the long id of field 1 into tField
> put the number of lines of value(tField)
I would say the benefit of this is being able to avoid writing out
complicated do statements. Nice.
But, while something like this works:
put the number of lines of value(tField)
Rev refuses to compile this:
delete line 2 of value(tField)
Error reads: Commands: missing ','
Any idea why?
Regards,
Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
More information about the use-livecode
mailing list