> Le 12 nov. 2017 à 12:13, Alberto Bachler via 4D_Tech <[email protected]> a 
> écrit :
> 
> So, just after setting the subform I want I call EXECUTE METHOD IN SUBFORM.
> 
> This doesn’t work (at least in v16R4 and v16R5):
> The reference to the subform is not updated immediatly after OBJECT SET 
> SUBFORM so the method called by EXECUTE METHOD IN SUBFORM is executed in the 
> wrong subform.

Hi Alberto, 
I'd say standard behavior, a subform is not instantiated until the form takes 
over (i.e. when code changing subform ends). 
I seem to remember that subforms in pages 2, 3, etc. are not instantiated in 
the On load, too. 
I'd try to use On timer:

  change subform A to B
  set timer(x)

  form event=on timer
    say something to B

-- 
Arnaud de Montard 



**********************************************************************
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