Update and Create a Record

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Jul 10 08:47:59 CDT 2006


On 7/9/06 10:22 AM, "Philip Mötteli" <philip.moetteli at econophone.ch> wrote:

Hi Philip,
 
> Two related questions:
> 
> 1. Lets say, I have an OID and some scalar data (like an int and a
> float). Could you sketch me the best way, how I have to implement and
> update of the concerned record with VSDK?
 
> 2. I have a table and some scalar data (like an int and a float)

But you cannot change recID and OID of a record.

You can them e.g. To locate a record:

    tbl->put_RecID( recid );

Then to update this record:

    tbl->Field( "intfld" )->get_Value( forUpdate )->put_Ulong( v1 );
    tbl->Field( "floatfld" )->get_Value( forUpdate )->put_Float( v2 );
    tbl->UpdateRecord();



OID is in fact just combination of

    (TableID << 32) + RecID


So it is unique in the scope of DB.


-- 
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