Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining if Variable is an Array
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00123051
Message ID:
00123055
Vues:
13
Hi Nigel,

You can use TYPE('aArrayName[1]') == 'U' to figure out if an array does not exist. Though in your case the problem would be different because you cannot pass an array as a parameter to an object's method unless the array exists as a property of the object.

>I am trying to create a method in a class which can received as a parameter either two variables or a single array. I can't find any way of identifying if a variable is of type 'Array'. The TYPE() function only returns the type of the contents. Does anybody know how I can do this?? TIA,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform