Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AINS() I Give up !!!!!!
Message
From
18/09/1998 09:54:48
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
18/09/1998 09:49:00
Joao Godinho
Fredesenvolv, Lda
Lisbon, Portugal
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00138171
Message ID:
00138175
Views:
19
>dimension my_array(1,2)
>
>ma_array[1,1] = 1
>ma_array[1,2] = "Bla Bla"
>
>what i have to do to insert a new row in ma_array
>ains(ma_array, ???, ????)
>
>thank you All

AINS will add a new empty row to your array, but you must create space for the empty row yourself, using DIMENSION

DIMENSION my_array( 1,2)
ma_array[1,1] = 1
ma_array[1,2] = "Bla Bla"

To add a new row at the end of the array, just use
DIMENSION my_array( 2,2)

or, to add the new row at the beginning
DIMENSION my_array( 2,2)
AINS( myArray, 1)
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform