Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add line in middle of grid
Message
From
17/01/2002 16:00:44
Cristian Tenea
Aquila Part Prod Com
Ploiesti, Romania
 
 
To
17/01/2002 15:46:53
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00606359
Message ID:
00606376
Views:
18
>Hi. I am doing an invoicing program and my end-users want to add a row in the middle of the grid.
>I considered this:
>1. Copy the rest of the records in the dbf to an array
>2. Delete those same records from the dbf
>3. Append a blank record
>4. Bring the records back in from the array
>Of course, user would have to have exclusive use of the file.
>
>Q; is there an easier method? If not, what commands would I use to copy to / append records from an array?
>
>Thanks, Randy

Do not use append from array, instead use FOR with array lines and append blank/gather memvar (this do not need exclusive access)

Or append a blank record and move information starting from back to line position desired (ex: to do on line 3 and have 6 lines allready appe blank and move-sccater/gather-6 to 7, 5 to 6, 4 to 5, 3 to 4 and blank fields on 3)
Previous
Reply
Map
View

Click here to load this message in the networking platform