Understanding the long ID?
J. Landman Gay
jacque at hyperactivesw.com
Tue May 15 19:27:17 EDT 2007
Trevor DeVore wrote:
> On May 15, 2007, at 3:55 PM, Chipp Walters wrote:
>
>> I'm using the latest release of Rev 2.8.1
>>
>> I create a new stack, add a single fld and a single button. In the button
>> script I add:
>>
>> on mouseUp
>> put the long ID of fld 1 into tID
>> set the disabled of tID to not the disabled of tID
>> put "fred" into tID
>> end mouseUp
>
> Hi Chipp,
>
> You are using "put" with a variable so "fred" is put into the variable tID.
> When using a variable to reference a field you need to:
>
> set the text of tID to "fred"
>
Or the dreaded "do":
do "put" &"e& "fred" "e&& "into tID"
Setting the text is easier.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list