General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only