Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is Array ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00285490
Message ID:
00285514
Vues:
24
>Hi Kenneth
>
>Thank's
>Do you think that performance will be affected by this king of trapping...
>
>
>
>>Rock,
>>
>>You can try ALEN(MyArray), which will kick out an error if the variable is not an array. Trap the error and there you go.
>>
>>>Hi
>>>
>>>I want to know if a specific variable is an array ?
>>>I try VARTYPE() or TYPE() but it gives me only the type of the first element of the array. I used VFP6.0 with SP3
>>>
>>>Thank's in advance

Try:
TYPE('myarray[1]')<>'U'
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform