Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I check to see if an array has been created?
Message
 
À
11/10/2001 23:57:39
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00567404
Message ID:
00567782
Vues:
12
Brama,

You can ran into a slight problem if using type() if the parameter is a form property. For example, run any form and type in the command window:
activate screen
? type('_screen.forms(1).name[1]')
It will return 'C' although name is not an array. I think the best (but not the fast) solution is using type() and alen()
? type('alen(_screen.forms(1).name)')='N'
Hugo
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform