finding in script

Alex Tweedly alex at tweedly.net
Sun Jan 2 11:59:31 EST 2005


J. Landman Gay wrote:

> On 1/2/05 6:04 AM, Alex Tweedly wrote:
>
>>  repeat with j = 1 to the number of controls on this stack
>>    put "...." & the name of control j & cr after msg
>>  end repeat
>
>
> Be careful with this. "The number of controls of this stack" returns 
> only the controls on the current card. You have to scan each card for 
> controls if you want all of them.

Thank for the warning - I'll change the script.

But - isn't that a bug ?  Shouldn't "the number of controls on this 
card" return the number of controls on the current card, while "number 
of controls on this stack" either do what it sounds like it should do 
:-), or maybe give an error ?

-- Alex.




-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.7 - Release Date: 30/12/2004



More information about the Use-livecode mailing list