jackrabbithanna
Programmer
I'm storing 4 different lists in a Paradox table using a TTable component. Each list has its own blob field. I have no problem saving each list to its field but when I try to retrieve the lists later I recieve an error : "EDBEngine Error with message 'Blob not opened'". But if I step over this error the other 3 lists will load without error. Does anyone know why this is happening? Thanks,
Code:
TStream *partnums = dataMod->Invoice->CreateBlobStream(dataMod->Invoice->FieldByName("PartsList"),bmRead);
TStream *partnames = dataMod->Invoice->CreateBlobStream(dataMod->Invoice->FieldByName("PartsNamesList"),bmRead);
TStream *partprices = dataMod->Invoice->CreateBlobStream(dataMod->Invoice->FieldByName("PartsPriceList"),bmRead);
TStream *partquantitys = dataMod->Invoice->CreateBlobStream(dataMod->Invoice->FieldByName("PartQuantityList"),bmRead);
lbPartNumber->Items->Clear();
lbPartNumber->Items->LoadFromStream(partnums);
Error right here !!!!
EDBEngineError with message can't open blob field;
I think the strings are there because if I step over the the other three lists are populated without error. Strange...
lbName->Items->Clear();
lbName->Items->LoadFromStream(partnames);
lbPrice->Items->Clear();
lbPrice->Items->LoadFromStream(partprices);
lbQuantity->Items->Clear();
lbQuantity->Items->LoadFromStream(partquantitys); */
Code:
TStream *partnums = dataMod->Invoice->CreateBlobStream(dataMod->Invoice->FieldByName("PartsList"),bmRead);
TStream *partnames = dataMod->Invoice->CreateBlobStream(dataMod->Invoice->FieldByName("PartsNamesList"),bmRead);
TStream *partprices = dataMod->Invoice->CreateBlobStream(dataMod->Invoice->FieldByName("PartsPriceList"),bmRead);
TStream *partquantitys = dataMod->Invoice->CreateBlobStream(dataMod->Invoice->FieldByName("PartQuantityList"),bmRead);
lbPartNumber->Items->Clear();
lbPartNumber->Items->LoadFromStream(partnums);
Error right here !!!!
EDBEngineError with message can't open blob field;
I think the strings are there because if I step over the the other three lists are populated without error. Strange...
lbName->Items->Clear();
lbName->Items->LoadFromStream(partnames);
lbPrice->Items->Clear();
lbPrice->Items->LoadFromStream(partprices);
lbQuantity->Items->Clear();
lbQuantity->Items->LoadFromStream(partquantitys); */