Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Defaulting parameter to null
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01670958
Message ID:
01670960
Vues:
65
>Hi all,
>
>I am going to myself guess that the answer to this next question is a "no" based upon my testing but just in case I am wrong here goes...
>
>- can a parameter default to null if not passed to a function or procedure e.g.
>
>
>LPARAMETERS tlUseExistingServer
>
>
>I tried
>
>
>LPARAMETERS tlUseExistingServer AS BOOLEAN NULL
>
>
>I know you can use PCOUNT() or PARAMETERS() to test if something passed but that does not work so well
if you want to pass *some* parameters but not others and you still want to know if something has been passed or not.
>
>Thanks,
>Albert

No, you can not set default value to parameter :-(
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform