We have a winner!!!    I used the 
    SETFOCUS alias1

syntax suggested below rather than the RBASE_FORM SET_FOCUS and that worked 
great to return focus back to my original form.  I need to run the calling form 
as an MDI to do this.

Thank you very much Motel!!

Karen


 

 

-----Original Message-----
From: Motel Du Parc <[email protected]>
To: rbase-l <[email protected]>
Sent: Fri, Feb 10, 2017 12:49 pm
Subject: Re: [RBASE-L] - MDI syntax help






No quotes on  'AllBLs', both forms have to be open MDI with alias


Open the first form
EDIT USING formname1 where... MDI AS alias1



>From formname1 open the second form.
EDIT USING formname2 where... MDI AS alias2


In formname2
SETFOCUS alias1

Will return the focus to formname1


This is the codes I use to refresh a variable lookup list box in a diffrent form

SETFOCUS menuvente
PROPERTY transup REFRESHLIST "TRUE"
SETFOCUS grille


Not sure if you can have the same name for the form and the alias.


Michel Séguin








2017-02-10 12:58 GMT-05:00 jan johansen <[email protected]>:


Karen,
 
I've used a couple of MDI forms.
I think the issue is this
PROPERTY 'AllBLs|RBASE_FORM' SET_FOCUS 'TRUE'
change it to this
PROPERTY AllBLs|RBASE_FORM SET_FOCUS 'TRUE'
 
Jan
 
-----Original Message-----
From: Motel Du Parc <[email protected]>
To: [email protected]
Date: Fri, 10 Feb 2017 11:50:52 -0500
Subject: Re: [RBASE-L] - MDI syntax help
 

EDIT USING formname MDI AS alias
 
SETFOCUS alias
 

 
2017-02-10 9:56 GMT-05:00 karentellef via RBASE-L <[email protected]>:
I'm using syntax that's from the X SAT that I attended, and there's something 
I'm obviously not getting correct.

I bring up a form (non-MDI, form name AllBLs) and clicking into a row brings up 
an MDI form based on that row.  However, after bringing up that MDI form, I 
want to transfer focus immediately back to the "calling form" AllBLs.

I thought this was the syntax per the SAT example.  At first I just refer to 
the calling form's original name, and I put this on the MDI form's on after 
start eep:
        PROPERTY 'AllBLs|RBASE_FORM' SET_FOCUS 'TRUE'

But I get the error message:  Component 'AllBLs|RBASE_FORM' not found in 
current form

I thought maybe I had to bring up the calling form in MDI mode, so I changed it 
to:
        EDIT USING AllBLs where....   MDI AS 'AllBLs'

but I still get the same error after bringing up the MDI form.

What do I have wrong in that syntax to return focus back to the AllBLs form?   
Thanks!

Karen
 
 
 --
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

 
--
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.





-- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to