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:
00325390
Views:
19
Jeff, below I've quoted from the HELP for AIns(). It doesn't add a new element to the array, so the 'last' element will be pushed into oblivion. You'll have to resize the array at some point. Sure makes you wish for Clipper's AADD() and other array handling tools!

HTH
Barbara

Inserting an element, row, or column into an array does not change the size of the array. The trailing elements, rows, or columns are shifted toward the end of the array and the last element, row, or column in the array is dropped from it. The newly inserted element, row, or column is initialized to false (.F.).

>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?
>
>2001, the year Clipper '87 makes a comeback.
>
>Txs.
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform