Object Reference in Variable?

Mark Smith lists at futilism.com
Fri Sep 26 05:09:01 EDT 2008


Scott, in the case of a field,

   put the long id of fld 1 into tField
   put line 1 of the text of tField

seems to work.

Best,

Mark

On 26 Sep 2008, at 07:37, Richard Gaskin wrote:

> Scott Rossi 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)
>
>
> -- 
>  Richard Gaskin
>  Managing Editor, revJournal
>




More information about the use-livecode mailing list