strange cursor update

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Jun 22 18:39:54 CDT 2006


On 6/22/06 12:54 PM, "Lilu" <gogaworm at tut.by> wrote:

> I update some field value using the cursor. The field value is changed but
> it's not stored in the database. This is the code I use.
> 
> IVCursor _cursor = _database.SqlSelect("select * from TEST_TABLE");
                        ^^^^^^^^^^^^^^^^^^^^^^^

You need specify kReadWrite


> if( _cursor != null ){
>    if( _cursor.FirstRecord() ){
>      _cursor.Field("TEST_NAME").Value = "new name";
>      _cursor.UpdateRecord();
>    }
> }

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list