Alastair This is something that may help?
I remember some time back Razzak showed a way to have different RBTI_FORM_COMPID variables for each form when you pop up a second form. http://www.mail-archive.com/[email protected]/msg08545.html Marc From: Alastair Burr Sent: Wednesday, July 22, 2009 7:40 AM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: I'm not understanding a Form Property properly Thanks, Razzak, for your sample application: Managing MDI Forms Using PROPERTY Commands. Using that I have been able to confirm that I have the right syntax for my commands and the right text is transferred to the vAction variable which, naturally, produces the expected result: the form and field object take focus as required. What I am still getting, however, is the identity of the last field object held in the R:Base variable from the command: SET VAR vColID = .RBTI_FORM_COMPID after returning to the first form and having focus on the control specified. I suspect that the reason for this is something to do with not "doing" anything on the first form after returning to it hence the only error message that I am getting: "component [name] not found in current form" which is absolutely correct as it isn't there. The sequence is: Open (first) form; click on DBEdit (placed in Scrolling Region); click on Enhanced Speed button "BrowseNames" (outside Scrolling Region) which launches second form; select data on second form then click on one of four Enhanced Speed buttons on second form; [data from first form is correctly placed on first form automatically] click on Enhanced Speed button "BrowseNames" which launches second form again - NB: no mouse or keyboard action in the DBEdit which has focus; select data on second form then click on one of four Enhanced Speed buttons on second form; [data NOT placed on form as the RBTI_FORM_COMPID variable contains the identity of the last field on the second form] As I indicated, I suspect that this is the expected behavior. I have found a work-around so that the vColID is not changed on returning to the first form but I'm not sure that this work-around will be effective in all circumstances. I would be grateful if my suspicions could be confirmed or otherwise. Thanks & regards, Alastair. Original Message ----- From: Alastair Burr To: RBASE-L Mailing List Sent: Wednesday, July 22, 2009 12:34 AM Subject: [RBASE-L] - Re: I'm not understanding a Form Property properly I'll check tomorrow - it's lone gone midnight here now - but I don't think I have Razzak's demo so if you come across it, Victor, please point me in it's direction. That said, I'm not using MDI for either form as there's no need. However, the second form could be used MDI as I close it anyhow so I'll try that tomorrow (later today). Regards, Alastair.

