Hi Randy,

Maybe I wasn’t clear enough. This works for me:

Have a method called, for example, MyGotoMethod with one line of code:

        GOTO OBJECT(*;”ObjectIWantToGoTo”)

If the subform has already been instantiated, then you can simply call:

        EXECUTE METHOD IN SUBFORM(“SubformName";"MyGotoMethod”) 

To goto the object in the subform. But if the subform hasn’t yet been 
instantiated, like when you are first loading a form or if you are switching to 
a >1 page, then you will have to first do:

        SET TIMER(-1)

Then in the On Timer method:

        EXECUTE METHOD IN SUBFORM(“SubformName";"MyGotoMethod”) 

I use this all the time and it works well.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236
<[email protected]>
<www.synergyfarmsolutions.com>


> On Nov 15, 2017, at 10:52 AM, Cannon Smith via 4D_Tech <[email protected]> 
> wrote:
> 
> You have to call the GOTO OBJECT in the next execution cycle of the form. One 
> way to do this is call SET TIMER(-1) and then run the GOTO OBJECT in the On 
> Timer event.

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to