Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vartype: behavior
Message
De
15/09/1998 16:32:39
 
 
À
15/09/1998 16:22:59
Jeroen Naus
Harte-Hanks Europe
Hasselt, Belgique
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00136852
Message ID:
00136985
Vues:
40
>How do you know the form doesn't exist ? Try debugging the variable right before it crashes. What does it say ?

Some background...

The DoForm method is part of my application object. There are some forms, based on a form encapsulated criteria, that do not load. What the called form will do is present the user with a MessageBox and return .F. from the init, thus not loading. In the DoForm method, I was writing code that checked for the existence of the form. If the form exists, a form array will get incremented. If not the array is to do nothing and the DoForm returns .F..

In the debugger, vartype(.MyFormArray[nIndex]) errors that the var does not exist. It should, and is documented, that it will retrun 'U' or 'X', if that be the case. OTOH, type('.MyFormArray[nIndex]') returns 'U'.

Does this make sense?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform