Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange .VCX behaviour
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00585493
Message ID:
00585645
Vues:
28
Thanks for your help

Do you know if there are any other 'surprises' to do with hacking SCX as
I am going to be doing a lot of this over the coming weeks ?

Regards,

Gerard



>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 >
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform