Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorAdapter in DataEnvironment
Message
De
07/04/2003 04:06:52
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00774046
Message ID:
00774610
Vues:
16
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.

Thanks,
Aleksey.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform