Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stop a function
Message
 
À
04/07/2006 13:39:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01133643
Message ID:
01133645
Vues:
12
>i want to know how to step out of a function , example :
>
>if l_ok then
> &&if i step into this if, i want to go out and i don't want to see the hello box
>endif
>
>messagebox("hello")
>
>how can i do it ???
if l_ok
 &&if i step into this if, i want to go out and i don't want to see the hello box
 RETURN 
endif

messagebox("hello")

*** or

LOCAL lbExecuteCode
lbExecuteCode = .t.
if l_ok
 &&if i step into this if, i want to go out and i don't want to see the hello box
 lbExecuteCode = .f.
endif
IF m.lbExecuteCode
   messagebox("hello")
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform