Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple tests in an if
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00470871
Message ID:
00471028
Views:
26
>this is probably a stupid question, but how do you insert elements into an array. i know in C it is just anArray[0] = 122
>anArray[1] = 124 and so on, but how is it done in FoxPro?

Redimension the array to the proper size, and then use AINS() to insert the new element, row ore column, and then populate it.

>does the indexing start at 0?

All VFP arrays are 1-indexed
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform