Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do we check for the existence of an object?
Message
 
À
15/07/1999 05:45:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00240965
Message ID:
00241696
Vues:
28
>>
if type('myform.mygrid')='O' and not isnull(myform.mygrid)
>>   *Object Exists
>>endif
>
>had trouble with this until I spotted your 'myform' inclusion. The secret is to include the full object reference (in my case "Cashbook.pageframe1.page3.grid1") rather than just "grid1". Then it works fine
>
>Thanks
>
>Harry,

Change that to;

Thisform.pageframe1.page3.grid1

and it will work even if the name of the form is not cashbook.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform