Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any known issues with PARAMETERS()?
Message
From
29/06/2000 16:13:30
 
 
To
29/06/2000 15:16:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00386643
Message ID:
00386716
Views:
15
At the risk of being branded completely useless, shouldn't it be:
define class upload as custom olepublic
     procedure openfile
     LPARAMETER cPathName
     if parameters() < 1 then
           return .f.
      else
           return "FOO"
      endif
enddef
>At the risk of boring the crap out of you, here is the complete code:
>
>DEFINE CLASS upload AS Custom OLEPUBLIC
>	PROCEDURE OpenFile(cPathName)
>		IF PARAMETERS() < 1
>		   This.LastErrorC="No file specified"
>		   RETURN .F.
>		ENDIF
>
--Todd Sherman
-Wake Up! Smell the Coffee!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform