Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement