Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to return a value of .F. to a program
Message
From
11/12/2006 11:47:24
 
 
To
11/12/2006 11:41:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01176571
Message ID:
01176576
Views:
10
>I need to return to know if a calling program failed. The current syntax is
>
>DO pgmname with parm1 , parm2
>
>I think I need
>
>DO pgmname with parm1 , parm2 , parm3
>
>where parm3 is going to be .F. if called program failed. I could the code something like
>
>IF !parm3
>    return  parm3
>ENDIF
>
>calling program already displays a message and uses the code
>
>RETURN .F.
>
>What I cannot remember is how to assign a value to parm3,
>
>TIA
? pgmname(parm1 , parm2)
** And in pgmname RETURN .f. if failed, .t. if everything is OK
Other way:
param3 = .t.
DO pgmname with parm1 , parm2
? param3
*** In pgmname just put: param3 = .f. when program failed
Other way:
LOCAL param3

param3 = .t.
DO pgmname with parm1 , parm2, @param3
? param3
*** In pgmname just put: param3 = .f. when program failed
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