sql - How to refresh foxpro cursors? -


After creating a cursor text for a selected query, I update some values ​​in it, and then some rows do not match Account Criteria Here's the problem:

For example; If I have 30 records and update them, then remove 10, the record number will not change! It will still be 30 Is there any way to tell the cursor to refresh or reload, so that the REC number will match me properly?

I am running a select write the cursor to write:

  update delete   

but record The number does not change, even if I browse my cursor, there is lesser record than before?

When you delete the record in FoxPro, the record is marked as deleted, But the packed command is not removed until it is issued. Since trying to pack a cursor as a result of "invalid operation" for the cursor. Error You should issue your COUNT and other commands with no deleted () section so that you can only work on records, which have not been marked as deleted.

By browsing the table and seeing deleted records, I suspect that you have deleted the set, on which the deleted records will be hidden from the Browse window.

  select * MyCasere READWRITE COUNT from myTable in Coors not to be removed () Delete the next 1 DT for the DELETE above () Do not remove COUNT () to my new one To not delete a copy ()    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -