Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I check to see if an array has been created?
Message
 
To
11/10/2001 23:57:39
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00567404
Message ID:
00567782
Views:
10
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform