Function to break apart a Long Name?

David Burgun dburgun at dsl.pipex.com
Mon Oct 17 11:00:31 EDT 2005


Hi,

Does anyone know of a function that will extract name of the Control, 
Group, Card and Stack from a long name string?

e.g. I have a string of the form:

control "A" of group "B" of card "C" of stack "D"

And I would like to have:

local myControlName  = A
local myGroupName = B
local myCardName = C
local myStackName = D

Any tips of how to write some code to do this would be greatly 
appreciated if there is not a standard function available.

I haven't used the string function in RunRev much and I'm having 
difficulty in working out the best way to do this.

Thanks a lot
All the Best
Dave



More information about the use-livecode mailing list