How to use "send"

J. Landman Gay jacque at hyperactivesw.com
Tue Jun 10 16:33:00 EDT 2003


On 6/10/03 2:40 PM, Dar Scott wrote:

> 
> On Tuesday, June 10, 2003, at 01:27 PM, J. Landman Gay wrote:
> 
>> I'd do something like this:
>>
>> on setTitle n
>>   if n is empty then put 1 into n
>>   set the title of graphic "coverMask" to "Releasing piece " \
>>     & n & "..."
>>   add 1 to n
>>   if n < 7
>>   then send "setTitle n" to me in 1 second
>> end setTitle
>>
>> To start it off, use either of these in the calling handler:
>>
>>   setTitle 1
>>   setTitle
> 
> 
> I wrote...
> 
>> on updateTitle i
>>    if i is empty then
>>       put 1 into i
>>    end if
>>    set the title of graphic "coverMask" to "Releasing piece " & i & "..."
>>    if i < 6 then
>>       send "updateTitle i-1" to me in 1 seconds
>>    end if
>> end updateTitle
>>
>>
>> Then in your code put this
>>
>> updateTitle
> 
> 
> Great Minds think alike!!

LOL! You can't beat instant verification like that. :)

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list