Hi Everyone
We are retro fitting the CreateOnDemand Tab property for an application. I'm just after some clarification on what events are fired:
1. For the selected tabpages the Constructor and normal sequenece of events occurs, including the constructor for the objects on the TabPage?
2. If you use CreatePage() to create a TabPage, then the Constructor for the tabpage is fired and all the objects on the TabPage are created firing their constructors too?
I'm only asking because I'm getting code fired that is tryng to reference objects that have not yet been created and I would have thought that they would have been by that point in time. i.e. I call createpage() for a tabpage which then triggeres events and it creashed becuase DWs on the tabpage are not yet created.
I'm having trouble running the debugger to see what is happening as it just crashes PB IDE.
Any confirmation, insight welcome....
Thanks
David
PB Version 2022R3 IDE build 1900 and Runtime 1892
FWIW: For this feature, I use the IsValid ( ) command a lot to verify if related objects have been instantiated before the App interacts with them. HTH
Regards .. Chris