Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAdapter in DataEnvironment
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00774046
Message ID:
00774619
Views:
17
>Hi Mark,
>
>>I made a typing error. TABLEUPDATE doesn't work, nowever TABLEREVERT does. I have tested this over and over again.
>>
>
>REQUERY uses exactly the same DataSourceType and DataSource that CursorFill used to create the cursor.
>TABLEUPDATE uses current settings for the CursorAdapter.
>TABLEREVERT doesn't use DataSource, it simply throws buffered changes away.
>
>It is possible to reconnect for TABLEUPDATE using Before* events, but to make REQUERY work for ODBC, you have to reconnect exactly the same connection handle - very hard to accomplish manually.
>
>I believe all you need to do is to set SQLSETPROP(...,"IdleTimeout",...) and VFP will do all work for you, it will automatically disconnect and reconnect the connection handle.
>

It is a little bit out of topic but I am very curious about it.
What in case of NATIVE datasource type - is it possible to close underlaying VFP table after filling cursor and open it just before tableupdate. In this case we exactly know "connection".
Can such way of work increase stability of VFP database (table coruption problem) ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform