Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stop a function
Message
 
To
04/07/2006 13:39:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01133643
Message ID:
01133645
Views:
11
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform