Stack Switching Question again

Mark Smith mark at maseurope.net
Wed Oct 5 10:58:19 CDT 2005


But you can still just refer to the data stack..

repeat with n = 1 to the number of cds in stack "dataStack"
   repeat for each line L in fld "somedata" of cd n of stack "dataStack"
     if L is whatImAfter then
        doSomethingWith L
     end if
   end repeat
end repeat

the point being that you can refer to, and work with any part of of  
your data stack without ever having to go to it.

Also bear in mind that refering to customProperties is many, many  
times faster than refering to the contents of fields.

Cheers,

Mark


On 5 Oct 2005, at 15:52, AbilityForms at aol.com wrote:

>
> In a message dated 10/5/05 10:47:20 AM, ambassador at fourthworld.com  
> writes:
>
>
>
>> AbilityForms at aol.com wrote:
>>
>>> Hi Everyone,
>>>
>>> Often times I have a button switch stacks in order to retrieve  
>>> data that I
>>> need to complete that button's task. In HyperCard I could lock  
>>> the screen,
>>>
>> lock
>>
>>> the messages, push the card, go to the data stack, retrieve the  
>>> data, pop
>>>
>> the
>>
>>> card and insert the found data. All without displaying the data  
>>> stack.
>>>
>> When I
>>
>>> do the same thing in Revolution it displays the data stack for a  
>>> flash.
>>>
>> Why
>>
>>> does that happen, and how do I stop that data stack from showing?
>>>
>>
>> Better still, you don't need to "go" to a stack to retrieve data from
>> it.  You can just get it:
>>
>>    get fld "Whatever" of cd 200 of stack "MyData.rev"
>>
>> --
>>   Richard Gaskin
>>   Fourth World Media Corporation
>>
>>
>
> Good idea, except for the fact that I have to find the data after I  
> get to
> the data stack.
> Joe
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list