Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strong Typing Parameter
Message
 
 
To
26/08/2002 01:08:39
Arnold Lee
K&A International Co.,Ltd
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00693538
Message ID:
00696761
Views:
12
>Hi,Everbody
>
>How can I decalre a optional parameter in Strong Type declaration ?
>I have below but have no luck
>
>PROCEDURE DOSOMETHING(NAME AS STRING,OPTIONAL AGE AS INTEGER)
>.
>.
>ENDPROC
>
>Thanks for any comment in advance.

In VFP6.0 I 'cheated' on the param with code like
CTYPE  =      TYPE('TheParameter')

   If !(CTYPE = "C") 	   && ( no switch ) GET A CHARACTER PARAMETER
      Clear
      ... say no no no you must have a ch switch to run this app
      Return
   Else
      lSetUp= .T.
   EndIf
Edgar L. Bolton, B.S. B.B.A.
Previous
Reply
Map
View

Click here to load this message in the networking platform