Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Child Grid displaying all records, at first
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00107957
Message ID:
00108479
Vues:
47
>Gee, that was quick! I was thinking similarly of adding a property to my pageframe class, called something like lFirstRefresh and setting it to .T. in the Activatepage event and then checking it in the page refresh where needed like
>* Page.Refresh...
>IF THIS.PARENT.lFirstRefresh
>   THIS.grd1.setfocus
>   THIS.PARENT.lFirstRefresh= .F.
>ENDIF
>
>
>Hows that sound?

Now we get into 'style'. I prefer to put properties like this into the form, rather than the container (pageframe, container object, etc.) because it's so easy to call them as 'thisform.MyProp'. You never have to think about the container's name, or the hierarchy level.

But there's nothing wrong with your method, either.
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform