Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A question of 'this'
Message
 
To
11/09/1997 16:15:04
Mandy Mccord
Public Interest Breakthroughs, Inc.
Albany, New York, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00049640
Message ID:
00049971
Views:
64
>>>How do I refer to a grid on a page within a pageframe in a form? I want to refresh it from another object (my Next button) and am not sure how to refer to it.
>>
>>ThisForm.yourpageframe.yourpage.yourgrid.Refresh()
>
>Phew! Knew it was something along those lines. Thanks!
>
>Mandy

Hi Mandy,

A faster way to code references to other objects on your form is to right-click in the code window and choose object list. A list of all the objects you have defined on your form will appear. Choose the object you want to reference and VFP puts the proper hierarchy for you. It might look something like this: This.Parent.yourgrid.Refresh(). I find this faster than typing it out and plus you won't have to remember the hierarchy of where all your objects reside on your form.

Happy right clicking (HINT: In VFP and Win95 in general, right-click everywhere. You'd be amazed at what you find sometimes)
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform