Fixed Binary[16] Index
Stefan Von Torklus
stefanvt at gmx.de
Fri Jul 25 13:24:01 CDT 2008
Hello,
I have a problem with the C++ ADK. I have a table with an FixedSized Binary[16] index-field.
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!
Greetz,
Stefan
More information about the Valentina
mailing list