Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to define a Public dynamic array ?
Message
 
To
01/06/2009 04:36:27
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01402913
Message ID:
01402916
Views:
82
>Hi,
>but I don't know the size of the array at the beginning.
>
>then how to define it ?
>
>Derek

You ALWAYS can redefine the array size:
DECLARE MyArray[1]
MyArray[1] = "Array 1"
DISPLAY MEMORY LIKE MyArray*

DECLARE MyArray[2]
MyArray[2] = "Array 2"
DISPLAY MEMORY LIKE MyArray*
...
DECLARE MyArray[1]
MyArray[1] = "Shrink 1"
DISPLAY MEMORY LIKE MyArray*
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform