If they are all the same name and I tell that componentid to be visible, they 
will all be visible.
I need individual control.

My problem is I have no way to set the componentID programmatically.
If I could, I could set it to the alias and I would have the control I need.

Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]
From: [email protected] [mailto:[email protected]] On Behalf Of Alastair Burr
Sent: Tuesday, November 06, 2012 2:23 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Controling multiple copies of the same form

Dennis,

I see no reason why they can’t be the same name – you can have multiple objects 
with the same name so why not alias the same as the form the same as the 
objects if that’s what you need?

Regards,
Alastair.


From: Dennis McGrath<mailto:[email protected]>
Sent: Tuesday, November 06, 2012 7:45 PM
To: RBASE-L Mailing List<mailto:[email protected]>
Subject: [RBASE-L] - Re: Controling multiple copies of the same form

Alistair,

I follow you, but if I can control which form is visible at any one time, I 
have a way to save variables to a file or table when a form is hidden and 
restore the saved variables for the form to be displayed.

Too bad the form alias is not also the form ComponentID, or is it?

Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]<mailto:[email protected]>
From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]]<mailto:[mailto:[email protected]]> On Behalf Of 
Alastair Burr
Sent: Tuesday, November 06, 2012 1:24 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Controling multiple copies of the same form

Dennis, is this one of those cases where you need to create each form “on the 
fly” using variables with a name that reflects a sequence number throughout?

So form #1 might be made using a sequence of variables beginning with vF1_ and 
form #2 with vF2_ and so on. Then you can do something like SET vVarName = 
(‘vF’ + (CTXT(.vFormCount)) +’_’ + [rest_of_name] ) – if you follow me.

I have never tried it so I might be talking rubbish.
Regards,
Alastair.




From: Dennis McGrath<mailto:[email protected]>
Sent: Tuesday, November 06, 2012 7:10 PM
To: RBASE-L Mailing List<mailto:[email protected]>
Subject: [RBASE-L] - Re: Controling multiple copies of the same form

Hi Larry,

I think I’ve got a solution to the variable problem.
These are going to be variable forms.

The object of this exercise is to avoid multiple sessions.
If I can hide/show them on demand I am golden.

I might be able to use a form timer to check a variable, but I’m trying to 
avoid that too.

Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]<mailto:[email protected]>
From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]]<mailto:[mailto:[email protected]]> On Behalf Of 
Lawrence Lustig
Sent: Tuesday, November 06, 2012 12:56 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Controling multiple copies of the same form

<<
I’m looking for a way for a master form to be able to open multiple copies of 
the same form MDI and control which one is visible at any given time.
>>

I have not, but remember that you do not have form-local variables, including 
those you create and dispose of in EEP code.  Take extreme precautions.  If you 
need isolation between the forms, consider running each in a different session 
of R:Base.

--
Larry

Reply via email to