Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Como saber si una variable es tipo array?
Message
From
08/02/2002 09:03:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
07/02/2002 16:12:15
Fausto Garcia
Independent Developer
Lima, Peru
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00616974
Message ID:
00617272
Views:
33
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform