Information générale
Catégorie:
Codage, syntaxe et commandes
The code in the dodefault() section returns control to the valid method, even if there is a Return 0, and will process the rest of the code in the valid method. Therefore the code in the Dodefault section is ineffective.
My workaround is to initialize a variable prior to calling the DoDefault(). If the DoDefault results in a return 0, the variable is set to .f.. There is code in the valid statement immediately after the DoDefault which returns 0 if the variable is .f.
This works but is there an easier way?
Précédent
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