Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass NULL instead of array
Message
De
23/02/2019 14:48:24
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01666677
Message ID:
01666679
Vues:
48
>Hi,
>
>I have a function that receives a parameter, an array. The code is as follows:
>
>
>Function MyFunc
>LPARAMETERS tParam1, tParam2, taMyArray
>EXTERNAL ARRAY taMyArray
>
>
>I need to add the 4th parameter. In the case of the 4th parameter the 3rd is not necessary. If I pass the 3rd parameter (taMyArray) set to NULL will I have a problem? Since the next line (EXTERNAL ARRAY taMyArray) expects this parameter to be an array.

You could as well pass something else as 3rd parameter and then instead of checking whether it's null, check whether it's an array or not.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform