Sets from Cursors Re: VCursor.AddRecord

Ruslan Zasukhin sunshine at public.kherson.ua
Sat Dec 3 11:02:28 CST 2005


On 12/2/05 8:35 PM, "Sims, John" <ayu8 at cdc.gov> wrote:

> You know, as I'm typing here, it has occurred to me that Vset has
> Append/Remove methods so we could really just do this ourselves (though,
> performance-wise, probably not as fast as Ruslan could implement).

> But,
> we could extend Vcursor (I'm pretty sure you are an RB guy) and add a
> ToBitSet and/or ToArraySet method ourselves.

I think here problem. Db.SqlSelect still will return you Vcursor,
But not yourCursor

More correct design here to use -- algorithms.
Methods which accept VCursor

But of course it is better move this into plugin, C++ code

> As long as you remembered
> to pull back the RecID in the query, this shouldn't be too difficult to
> do.  Even more interesting might be if you pulled back the RecID of the
> "main" table and the RecID(s) of a related table(s), you could make the
> extends methods where you pass the field from the Vcursor you want to
> create a Vset for then you could easily create an iterator for both the
> "main" table and the related table(s).
> 
> Ok, I gotta get back to work.  Sorry for the "stream of thought" post.
> I don't have time to really thing through all of this here at work.  I
> hope I have made enough sense.

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