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
From
12/10/2001 03:08:58
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
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:
00567426
Views:
9
I Peter do the following
IF TYPE("myarray[1]") = "U"
array does not exist
ENDIF

>I am using an array in a program and on the first pass through a method, it is possible that the array hasn't been created yet (the routine is primarily for subsequent passes). Of course I get an error when I do a ALEN on the non-existant array. I have tried various commands to see if I can check for it but they all generate an error. Is there a command that can tell if an array (or variable of anytype), exists without generating an error?
Alexandre Palma
Senior Application Architect
Previous
Reply
Map
View

Click here to load this message in the networking platform