Information générale
Catégorie:
Codage, syntaxe et commandes
>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
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