Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strong Typing Parameter
Message
 
 
À
26/08/2002 01:08:39
Arnold Lee
K&A International Co.,Ltd
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
00693538
Message ID:
00696761
Vues:
11
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform