Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return status
Message
 
 
À
02/11/2004 10:30:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00957028
Message ID:
00957031
Vues:
23
You can return .F. from the method indicating failure.
* CheckSomething method
...
if I=2
  messagebox('problem')
  return .F.
endif
...
* Commandbutton click
IF Thisform.CheckSomething()
  * Check is ok, continue processing
ENDIF
>I have a method that checking something.
>I call to the method from command button.
>If the check is good I want to continue, if not to return.
>For example:
if I=2
>messagebox('problem')
>return
>endif
>If I put the 'return' in the method it's not help,
>(the program finish only the method but the command button lines continue).
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform