Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Child Grid displaying all records, at first
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00107957
Message ID:
00108479
Views:
42
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform