Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error if 'object not defined'
Message
De
06/05/2008 15:45:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
06/05/2008 15:39:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01315416
Message ID:
01315418
Vues:
18
>I check to see if my hidden scteen is an object.
>
IF TYPE('myobj')='O'
> An error occurs if the object is not defined.
>
>Is there a better way?
>
>Thanks, Randy

What kind of error? The code above works for me, even if the variable doesn't exist.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform