Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Defaulting parameter to null
Message
De
19/09/2019 14:17:59
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Defaulting parameter to null
Divers
Thread ID:
01670958
Message ID:
01670958
Vues:
98
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
But that just lets me store .null. to the parameter after it has been passed. 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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform