Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert record
Message
From
29/10/2005 12:30:58
 
 
To
29/10/2005 12:16:28
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01063232
Message ID:
01063262
Views:
9
>unfortunately it's not working, it inserts as the last record, while I need it inserts as the first record.
>
>regards,
>
>Jerry
>
>

It works, but ( of course ) it has a lot of restrictions:
- none open index
- no buffering
- no RI
- exclusive access
....

example:
CREATE CURSOR BYBY (AA I)
APPEND BLANK
REPLACE AA WITH RECNO()
APPEND BLANK
REPLACE AA WITH RECNO()
GO 1
INSERT BEFORE BLANK
? AA,RECNO()
BROWSE NORMAL
>
>
>>I have a table with lots of record, I want to insert one record at the top of it (as recno #1), the old fashion way is to copy all the records to temporer table, zap it, insert the record, re-append from the temporer table.
>>
>>but I think it should be another easier way.
>>
>>please advise
>>
>>thanks for the help
>>
>>regards,
>>
>>Jerry
>
>You can do this with the old INSERT xBase command,
>but this can have sense in very specific cases with a little table:
>
>SELECT myTable
>GO 1
>* next build a new table with 1 empty record and append the active wa
>INSERT BEFORE BLANK
>REPLACE .....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform