Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange .VCX behaviour
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00585493
Message ID:
00585586
Views:
29
Yes, it has to be after DE record and before the first record that doesn't belong to DE. You can use
INSERT BLANK
Here's excerpt from FPD 2.6 help:
INSERT [BEFORE] [BLANK]

Inserts a new record into the current table/.DBF immediately
after the current record and displays the new record for
editing.
Or you can do something like
* Position pointer on the record after wich you want to insert new record
...
lnTempFile = SYS(2015)
SKIP
lnRecno = RECNO()
COPY REST TO (lnTempFile )
GOTO ( lnRecno )
DELETE REST
* APPEND or INSERT new record
...
APPEND FROM (lnTempFile )
PACK
ERASE (lnTempFile )
I hope, you would do this on the copy of the SCX. :)

>Sergey,
>I took your last suggestion which worked fine when I deleted records
>(Reserved2 field seems to hold No. of Cursor records + 1)
>
>Now I am running into another problem.
>I am adding programatically some 'Cursor' records to the SCX file.
>When I change the reseved2 field to = No. of Cursor records + 1, it keeps coming up with an error when I try to MODI screen !!
>
>I'm wondering must the 'Cursor' records be in any aprticular position on file. I just append them to the end of the file.
>
>Thanks for your help,
>
>Gerard
>
< snip >
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform