Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Basic Cursor Object usage.
Message
From
22/02/1998 01:12:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Basic Cursor Object usage.
Miscellaneous
Thread ID:
00080309
Message ID:
00080309
Views:
63
The following code can create a Cursor(Temp Table) of Actual One.

use MyTable again in 0 Shared
=Afields(MyTableStru)

Create Cursor cMyTable ;
From Array MyTableStru

select cMyTable
Append from MyTable
* To this line, A Cursor carry all data from Real one.

Append Blank
Replace MyKey With "YYZ"

Close All && Should Flush in Real one... but fail ?_?' Nothing add!

I want to know how to:

  1. Ensure Flush in Real Table?

  2. Avoid Update when Close, Something Like TableRevert()?

  3. Ensure retrieve if the Real Table is updated by other?
    Escpecially in 2 or more user add record at the same time!



Or better use Table Buffering (Row, File Lock) instead of Cursor
control??
What are the pons and cons of using Table buffering and Cursor?

Thanks! ^_^"
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Next
Reply
Map
View

Click here to load this message in the networking platform