Re: Function to break apart a Long Name?

2005-10-20 Thread Jeanne A. E. DeVoto
At 10:59 PM -0400 10/18/2005, [EMAIL PROTECTED] wrote: sez [EMAIL PROTECTED]: At 4:00 PM +0100 10/17/2005, David Burgun wrote: 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" o

Re: Function to break apart a Long Name?

2005-10-20 Thread David Burgun
Hi, This assumes that the control I am processing is actually loaded into the Rev Environment which is isn't in this case. I am processing a text file that contains the long names of controls that were exported from a stack. I don't really want to load the stack and then dip into the control,

Re: Function to break apart a Long Name?

2005-10-18 Thread Cubist
sez [EMAIL PROTECTED]: >At 4:00 PM +0100 10/17/2005, David Burgun wrote: >>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 li

Re: Function to break apart a Long Name?

2005-10-18 Thread David Bovill
A bit of a hack, but may help? on deconstruct_Object someObject, @someControl, @cardObject, @stackName -- put extract_StackObject(someObject) into stackObject put the last word of stackObject into stackName delete char 1 of stackName delete last char of stackName -- put the short nam

Re: Function to break apart a Long Name?

2005-10-17 Thread Jeanne A. E. DeVoto
At 4:00 PM +0100 10/17/2005, David Burgun wrote: 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 myControlN

Re: Function to break apart a Long Name?

2005-10-17 Thread Ken Ray
On 10/17/05 10:00 AM, "David Burgun" <[EMAIL PROTECTED]> wrote: > 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

Re: Function to break apart a Long Name?

2005-10-17 Thread David Burgun
Hi Eric, Thanks a lot for this, gave me an insight on how to tackle strings. All the Best Dave Hi Dave, function ObjectsList pLongName replace space & "of" & space with comma in pLongName return pLongName end ObjectsList Then you get a comma delimited list of all objects: From 'button "

Re: Function to break apart a Long Name?

2005-10-17 Thread Eric Chatonet
Hi Dave, function ObjectsList pLongName replace space & "of" & space with comma in pLongName return pLongName end ObjectsList Then you get a comma delimited list of all objects: From 'button "Button" of group "group" of card "card" of stack "Untitled 1"' you get 'button "Button",group "gr

Function to break apart a Long Name?

2005-10-17 Thread David Burgun
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 myCardN