Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making SQL Pass-Through Cursor Updatable
Message
De
06/03/2003 14:41:56
 
 
À
05/03/2003 06:00:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00760620
Message ID:
00762384
Vues:
32
Thanks for your reply! I modified your code to use my data source. It's still not saving the change I make to the field "Paginated". Am I crazy or what? The code is below for your review. Any help would be appreciated.

lnHandle=Sqlstringconnect('DRIVER=SQL Server;SERVER=sqlserver;'+;
'DATABASE=MacroPro;Trusted_Connection=Yes')

SQLExec(lnHandle,'select * from dbo.routes','v_routes')
CursorSetProp('KeyFieldList','id','v_routes')
CursorSetProp('WhereType',1,'v_routes')
CursorSetProp('Tables','routes','v_routes')

CursorSetProp("UpdateNameList", ;
"paginated routes.paginated",'V_routes')

CursorSetProp('UpdatableFieldList','paginated','v_routes')
CursorSetProp('SendUpdates',.T.,'v_routes')
CursorSetProp('Buffering',5,'v_routes')

Browse title "before Update - edit"
Tableupdate(2,.T.,'v_routes')
SQLExec(lnHandle,'select * from dbo.routes','afterupdate')
SQLDisconnect(lnHandle)
Select afterupdate
Browse title "After update"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform