Thanks, Marc, that would work for me if I was staying focused on the same control. Razzak notes there what I had been suspecting that "RBTI Form Variables defined by the last form will of course overwrite the results of the previous form" and I want to pick up whatever happens to be the current field every time.
Without going into a gargantuan explanation it's hard to demonstrate why but I want this second form and the button that calls it to be used on many forms across two databases from whatever field the cursor happens to be in. I'm so close and this is the last issue to resolve. If, no, when I can do it I'll have a menu that can be popped up anywhere that will paste as replace or append the selection into the active control or simply hold the selection on the clipboard. One menu anywhere, any time, dynamic, key press selection - oh and thank you, Razzak, for your "Dynamic Search Results Using OnKeyPress option in forms" application as well - and so much faster than anything else I've come up with. Regards, Alastair. ----- Original Message ----- From: MDRD To: RBASE-L Mailing List Sent: Wednesday, July 22, 2009 1:58 PM Subject: [RBASE-L] - Re: I'm not understanding a Form Property properly 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. ------------------------------------------------------------------------------ No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.23/2254 - Release Date: 07/22/09 05:59:00

