Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursors & Buffers
Message
From
28/09/1998 11:14:47
 
 
To
28/09/1998 10:55:13
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00141460
Message ID:
00141476
Views:
25
Hiya Jim ---

Ummmm...my first question back to you is why you're not just using the table as a controlsource instead of a cursor? Secondly, the dataenvironment will not create a cursor. VFP will insert tables into a DE if there are data-bound controls in the form with no corresponding tables and Private datasession.


>I just came across something that I am amazed I have not noticed before, and I would like to confirm it with the experts.
>
>Using a form's data environment, the controls on a form are actually interacting with a cursor created by the data environment. A cursor, cursor1, is created from table.dbf with the alias "table". Reading and writing is from/to the cursor "table", not from/to table.dbf.
>
>If buffering is off, any changes to the cursor "table" are immediately written to table.dbf, but if buffering is on, changes await one of two events: (1) moving from the current record or (2) a programmatic update, (or (3) are there others?)
>
>So far elementary. But...
>
>SELECT FROM does not operate on the cursor, but on the underlying table. So any changes one may make to the cursor are not necessarily reflected in the SELECT FROM results unless one first updates the underlying table.
>
>Which leads to the following inquiries:
>
>(1) Are my observations above correct?
>
>(2) Is there any easy way to force SELECT FROM to access the cursor "table" rather than table.dbf.
>
>(3) Am I an idiot for having failed to realize the above relationships before now?
>
>Any and all comments would be appreciated.
>
>regards,
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform