Set the RecID

Thomas Flemming tf at ttqv.com
Sun May 24 09:43:03 CDT 2009


Hi Ruslan,

thanks alot, much clearer to me now :-)

Just one thing:
What is the difference between IVBitSet and IVSet?

Regards,
Tom



Ruslan Zasukhin schrieb:
> On 5/24/09 3:54 PM, "Thomas Flemming" <tf at ttqv.com> wrote:
> 
> Hi Thomas,
> 
>> I'm somehow a bit confused of all the different possibilities ;-)
>>
>> I just want to set the recid of a table to a row, where a specific field has a
>> specific value.
>>
>> This one works, but it is the best way?
>>
>> Dim resultset As IVBitSet = fldNodeID.FindValue(id)
>> Dim resultIter As VSetIterator = CType(resultset, IVSet).MakeNewIterator
>> mTblNodes.RecID = resultIter.FirstItem
> 
> No.
> 
> If you know that will be found ONE of FEW Recocrds only better use
> 
>> Dim resultset As IVAtraySet = fldNodeID.FindValueAsArraySet(id)
> 
> So you will get small memory usage  ArraySet with only ONE or FEW ulong
> numbers.
> 
>    mTblNodes.RecID = resultSet.ItemAt(1)    // go to single found record
> 
> 
>> What is the difference between IVArraySet, IVBitSet, IVSet,
>> VArraySet, VBitSet, VSet  ?
> 
> As you should know, in .NET exists
>     a) interfaces 
>     b) classes that implement that interfaces.
> 
> 
> IVArraySet, IVBitSet, IVSet -- are interfaces
> 
> VArraySet, VBitSet, Vset -- are classes.
>             just we cannot hide them it seems.
> 
> You should prefer to use Interfaces in your code.
> 
> 

-- 
/****************************************
**   Dipl.-Ing. Thomas Flemming
**   Software Development
**
**   Touratech AG
**   Auf dem Zimmermann 7-9
**   D-78078 Niedereschach
**
**   mail  tf at ttqv.com
**   fon   +49 (0) 7728 9279-206
**   fax   +49 (0) 7728 9279-29
**
**   http://www.ttqv.com
**   http://www.touratech.de
**
**   ... und immer dem Pfeil nach!
***************************************/


More information about the Valentina mailing list