Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Form's Refresh from Init
Message
De
24/01/2002 17:18:53
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00609928
Message ID:
00610156
Vues:
21
>Hi everybody,
>
>I've just noticed, that our BaseForm class has thisform.refresh() in Form's Init in case, it sets a filter. I'm not sure, it's allowable to call form's refresh from Init, it breakes event sequence, it may cause lots of undesired effects, etc.
>
>For instance, I usually code Form's Init this way:
>
>my custom code
>dodefault()
>some other custom code
>
>Besides, as far as I know, first activation of the form calls its Refresh anyway.
>
>What would be your opinion?
>
>Thanks a lot in advance.

Hi Nadya

I agree with you that it's redundant, but is probably harmless. However, in order to apply a filter you do need to move the reocrd pointer, even if only to the same place, so maybe just replace the

ThisForm. Refresh()

with

GOTO RECNO()
----
Regards
Andy Kramek
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform