Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Activate event.....
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00369066
Message ID:
00369136
Vues:
15
>Hi Bruce,
>
>Sorry for disturbing your lunch, it's still a little bit unclear for me.
>First, am I right, that Refresh() fires automatically, then Form Activates the first time? I'm not sure, it's true. I will test it, if you don't know the answer.

No problem...yes, that is true.

>
>Second, suppose it's true and I don't need to Refresh my Form in Activate, if it Activates the first time. Therefore, I can add one additional property to our Base form class, like ActivationCount and in Activate will increment this property and therefore refresh only if ActivationCount>1. Am I right?

Unless there's a good reason for a counter, I would just use a flag (.T., .F.) set in Activate to .T. on loading, like Activation = .F. (by default), then set it to .T. in Activate.
IF !Thisform.Activation
  Thisform.Activation = .T.
  Thisform.Refresh()
END
if you get the idea.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform