Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dev. version vs installed version ????
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00128426
Message ID:
00129358
Views:
25
>O.k. but why would it fire more than once? I will check
>activate of pageframe for code. I do have a thisform.refresh
>in every activate of every page. Could this be the culprit?
>
>Thanks and have a good day.
>
Becky,

It would fire more than once because the page is activated more than once. To get the most out of event programming you must know the details about each event, when it fires, what makes it fire, etc..

In general, an Activate event is not a good place to do the append. The active fires whenever focus goes to the page. If the user clicks a button in the form and then button setfocus to the pqage the activate fires again. If the user clicks to page 1 and then back to page 2 the activate for page 2 fires again. If your code sets focus somewhere and then back to the apge the page's activate fires again.

I would create a button on page 2 that says "Add New Reord" and in its Click event I would append blank.
Previous
Reply
Map
View

Click here to load this message in the networking platform