[V4Rb 2] VCursor.AddRecord

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Jun 2 12:45:24 CDT 2005


On 6/2/05 12:40 PM, "Erne" <ernestogiannotta at tiscalinet.it> wrote:

>>> What is the meaning of the integer returned by VCursor.AddRecord?
>>> 
>> 
>> I think it is index in the cursor.
>> For cursor no many sense.
>> 
> 
> why can't we get the Recid of new record as in Table api?
> after all Vale should know...

Because I think future we will be able do AddRecord()
For cursor built on 1:1 tables.

Then you cannot say what table RecID to return
 
> btw
> I can't remember, do we have now function to get recid of last added
> record?

In SQL no.

 
>> Just in our C++ API cursor is a table also.
>> So it have the same API for Table functions as AddRecord().
>> 
>> In future we hope for V4RB also have interfaces,
>> So we bring this to V4RB also
>> 
> 
> mmm... If I understand it well this answers my question
> you don't want break oop model in cursor implementation

Right.

In ideal we must be able use Cursor as Table.

 
> I'm not deep enough into it so ignore it if I say something too
> stupid but...
> couldn't cursor be subclass of table and have own AddRecord()
> overridding parent's one so to be able return correct Recid info?

In ideal they must extend interface I_Table.


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