Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question regarding object referencing
Message
From
26/10/1997 16:40:25
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00056749
Message ID:
00056750
Views:
28
>A question regarding object referencing:
>When I try to reference a form from within an external
>pgogram by using the syntax form1.pageframe1.refresh

To access an existing form, you must have a variable that keeps a reference to it. If you don't have it, you may use the _SCREEN VFP object which keeps a list of all opened forms in the array FORMS. You may search in this array for your form and call it with:

_SCREEN.Forms[i].Refresh()

where i is the index in the array where you found the form.

>I get an "object not found" message, yet form1 is the
>name of my form. When I use "thisform", I get a message
>that "thisform" must be used within a method.

ThisForm reference always the current form and can be used only inside the form (ie from a form's method or from a method of one object in the form.)

Vlad
Previous
Reply
Map
View

Click here to load this message in the networking platform