Fixed Binary[16] Index

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Jul 28 01:49:50 CDT 2008


On 7/25/08 9:24 PM, "Stefan Von Torklus" <stefanvt at gmx.de> wrote:

Hi Stefan,

> Hello,
> 
> I have a problem with the C++ ADK. I have a table with an FixedSized
> Binary[16] index-field.

Binary fields NEVER have index actually.

> I can put and get the data directly.

> But I have problem to search for a specific Entry. Here is how my code looks
> like:
> 
> uchar dta[17] = {"1234567890123456"};
> 
> I_Field_Ptr pfUid = pT1->get_Field("uid"); //get the field -> successfull
> I_Value_Ptr ptr = (pfUid->get_Value()->Clone()); //successfull
> fbl_dynamic_cast<I_ValueBinary>(ptr)->put_Data(dta,16);  //successfull
> REC_ID id = pfUid->FindSingleValue((I_Value_Ptr)ptr);  //successfull

 
> BUT the ID returns always a 1 (But the value is e.g. on RecID 1000).
> (Also if there is no data within the table)
> 
> What I'm doing wrong?
> Any suggestion are welcome!

Just I never have think that somebody may need do search on binary values...

You need for now to use other field types, and add feature request into
Mantis. I still see this feature as very limited. May be really to only
small binary values.


> Greetz,
> Stefan



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