Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does ADir() always create an array?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01187382
Message ID:
01187396
Views:
20
>>The ADIR() does create array if it doesn't exists but it'll not change existing memory variable to array type. Anyway, it's good programming practice to declare all variables and arrays before using them.
>
>I think it would be best if I declare the array variable first in all cases and not take any chances.

Make it LOCAL to avoid any conflicts.
LOCAL aPatientFiles[1]
nNumberOfPATFiles=ADIR(aPatientFiles, "*.PAT")
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform