Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array : Dimension vs Ains
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00325376
Message ID:
00325399
Views:
28
>To add another row to a two column array, is it more proper to redimension or use ains? Under what circumstance would you want to use ains() and what dangers are there in using it to add rows given that it does not change its size?
>

AINS() does not redimension the array; it pushes the last row off the edge of the world into an abyss. Read the remarks at the end of the VFP Help on AINS()

DIMENSION would be used to resize the array, and then AINS() to shove things in at the middle.
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
Next
Reply
Map
View

Click here to load this message in the networking platform