Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check the return value of a method ?
Message
From
06/10/2005 05:18:23
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to check the return value of a method ?
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01056649
Message ID:
01056649
Views:
50
Hi,
If I convert a user define function into a Form METHOD.
for Example, if I want to convert the send_wilson_data() to a METHOD
how to check it's return value?
IF send_wilson_data() return .t., it will do the For..Loop.
	IF send_wilson_data()
	    FOR x = 1 TO nfaxcnt
		IF SUBSTR( afaxtable[x,1],3,1)='1'
		   delfile = "i:\wilson\fax\cfm\"+afaxtable[x,1]
		   DELETE FILE &delfile
		ENDIF 		
	    NEXT x
        ELSE
             QUIT
	ENDIF 
Next
Reply
Map
View

Click here to load this message in the networking platform