Controls of Stack

Geoff Canyon gcanyon at inspiredlogic.com
Sun Nov 24 18:00:01 EST 2002


>Hi All
>
>Does everyone know that repeat with x=1 to the number of controls of stack y
>only enumerates the controls on the current card? Bit of a bugger..eh?
>
>How does one parse all the controls of a stack ensuring that those in a
>background only get parsed once unless they are fields with the sharedText
>set to false... etc
>
>FYI... I'm trying to develop the basis for a language engine when it wasn't
>a requirement for the first version of the program. In the short term I want
>to generate a list of objects with visible text. Then I'll search scripts
>for ask and answer dialogs and any other hard coded text.
>
>When I have all that I'll create stack file with a custom property set that
>can be parsed to set everything for a particular language. Then I'll learn
>to translate to ... ;-)
>
>Cheers
>
>Monte

It's been a long time, and the code is likely a plate of spaghetti, but the mcRipper stack I wrote does exactly this sort of "parse all the controls" loop:

<http://www.inspiredlogic.com/mc/ripper.html>
-- 

regards,

Geoff Canyon
gcanyon at inspiredlogic.com



More information about the use-livecode mailing list