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
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,
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
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
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
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
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 "
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
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