Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Como saber si una variable es tipo array?
Message
De
08/02/2002 09:03:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
07/02/2002 16:12:15
Fausto Garcia
Independent Developer
Lima, Pérou
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00616974
Message ID:
00617272
Vues:
34
This message has been marked as a message which has helped to the initial question of the thread.
>Hola Hilmar,
>
>Intente de esa manera, lo malo es que si aplico la validacion a cualquier otra cosa como por ejemplo una variable sin definir tambien me va a devolver 'U' y eso no es un arreglo :(
do case
case type("MiVariable") = "U"
  * la variable no existe
case type("MiVariable(1") # "U"
  * MiVariable es un array
otherwise
  * MiVariable existe, pero no es un array
endcase
Las acciones posteriores pueden varíar según los requerimientos.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform