It is currently 21 April 2025, 8:49 Advanced search

events ?

Questions and answers on how to best use Instant Developer

events ?

Postby john w » 9 September 2024, 18:53

I have a value in a global variable. I want to display that value when the form/panel opens. I tried the Load event and that did not seem to work. Is there a better event to use?
Regards

John W
User avatar
john w
 
Posts: 834
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: events ?

Postby ljwilson » 9 September 2024, 20:03

Load event should work, but what kind of panel field is displaying the value? You would have to put the contents of the global variable into something that is known by the panel.

...jack
ljwilson
 
Posts: 783
Joined: 26 November 2013, 14:15

Re: events ?

Postby john w » 10 September 2024, 14:28

I do agree that the Load event should work. In looking at the debug the Load event for that form is not showing. I guess that means its not firing or at least where I think it should fire.

If I put the code in a procedure it works so the values and references are there. Its that pesky Load event.

I will do some more exploring.
Regards

John W
User avatar
john w
 
Posts: 834
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: events ?

Postby john w » 10 September 2024, 16:09

It appears the Activate event is what is needed and not Load. I am not sure why this is the case, but there must be some reason showing a form does not fire the Load event.
Regards

John W
User avatar
john w
 
Posts: 834
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: events ?

Postby ljwilson » 11 September 2024, 11:52

That is odd. I have seen an issue where the Tabs Change Page Event fires before the load event, but the load event still fires. Would be interesting if you could put that behavior in a sample app to examine.

Of course Activate will fire every time the form gets focus.

...jack
ljwilson
 
Posts: 783
Joined: 26 November 2013, 14:15

Re: events ?

Postby john w » 11 September 2024, 14:24

I will work on a sample app to see if I can replicate the issue. If it does I will post it.
Regards

John W
User avatar
john w
 
Posts: 834
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA


Return to Tips & Tricks

Who is online

Users browsing this forum: No registered users and 17 guests