Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question regarding object referencing
Message
De
26/10/1997 16:40:25
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00056749
Message ID:
00056750
Vues:
33
>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
Fil
Voir

Click here to load this message in the networking platform