Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is parameter an array?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00865548
Message ID:
00865568
Vues:
17
>try this
>
>
>
>DIMENSION testarray2[2]
>DIMENSION testarray[2]
>testarray[1] = "dummy value"
>testarray[2] = "dummy value"
>?IsArray(@testarray2)
>?IsArray(@testarray)
>lcString = "just a string"
>?IsArray(@lcString)
>lnNumber = 1
>?IsArray(@lnNumber)
>
>
>FUNCTION IsArray
>LPARAMETERS taArray
>RETURN TYPE("taArray[1]") # "U"
>
>
Not always true. _SCREEN.Caption[1] doesn't crash and it isn't an array. But TYPE("_SCREEN.Caption[1]") says "C".
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