Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor adapter returns .F. for CursorFill() on UPDATE
Message
 
 
À
04/03/2006 13:41:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01101501
Message ID:
01101520
Vues:
10
This message has been marked as the solution to the initial question of the thread.
A CursorAdapter works similar to a view. First, you retrieve data into a cursor, than you update data in the cursor and use TABLEUPDATE() to send updates to the backend.

>It's probably a syntax problem but I can't seem to find the proper way to avoid CursorFill() to return .F. when I have an update.
>
>
>         loConnection=CREATEOBJECT('ADODB.Connection')
>         loConnection.Open(This.cSQLStringConnect)
>         loCommand=CREATEOBJECT('ADODB.Command')
>         loCursor=CREATEOBJECT('CursorAdapter')
>         loCursor.Alias=lcCursor
>         loCursor.DataSourceType='ADO'
>         loCursor.DataSource=CREATEOBJECT('ADODB.RecordSet')
>         loCursor.SelectCmd=This.cSQL
>         loCursor.DataSource.ActiveConnection=loConnection
>         loCommand.ActiveConnection=loConnection
>         IF NOT loCursor.CursorFill(.F.,.F.,0,loCommand)
>         ENDIF
>
>
>What would be the proper syntax to have an update command to be properly executed and have CursorFill() to return .T.?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform