VCursor.AddRecord

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Oct 5 15:52:28 CDT 2005


On 10/4/05 11:29 PM, "Charles Yeomans" <yeomans at desuetude.com> wrote:

Hi Charles,

> Is there a way to get the recID of a record once it has been added?
> Even for local databases, the trick of reading it from the recID field
> of the cursor does not appear to work anymore.

Ops!

It must work!!! As for local so for client versions

Ivan please check this ASAP.

-------------------------
And 

> As has been discussed before, there isn't a way to get the recID of a
> record just added with VCursor.AddRecord.  Because my code depended on
> this being possible in V4RB 1, I'm being forced to resort to a hack.
> It certainly seems reasonable to me to return the recID of the new
> record from AddRecord, replacing the apparently useless value now
> returned.
> 
> To handle Ruslan's vision of an AddRecord that supports 1-1
> relationships, all that needs to be done is to define which recID is
> returned, since given it one can retrieve the recID of the related
> record.

Well may be. I do not see then way to support 1-1...

And in fact I think this is wrong idea...
We need add entity of real world. This is atomic operation.

So if think that Vcursor.AddRecord, works on original singlel table,
Then yes, probably we can return RecID...

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