Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Too many variables
Message
 
 
To
03/12/2009 14:10:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01436885
Message ID:
01437534
Views:
49
Tore,

When adir() overflows it's a 1-D array, you need to DIMENSION it back to a 2-D array.

>Actually it seems like I have discovered an anomaly in VFP8. This is how I tested, fast and simple from the command window
>ADir(laDir,'l:\pictures\tme\*.*') && Invalid subscript reference. VFP9 reports 25682
>?ALEN(ladir) && 64951
>?ALEN(ladir,2) && 0 (!!!!)
>?ladir(1,1) && TME_2P30YRR80.jpg
>?ladir(2,1) && TME_2P30YRR80.jpg
>?ladir(3,1) && TME_2P30YRR80.jpg
>?ladir(1,2) && 35810
>?ladir(2,2) && 35810
>?ladir(10000,2) && 35810
>This simple test made me believe that all the array elements were identical. However the debugger showed that they were in deed different...! So the debugger showed me the correct values, but the command window did not.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform