Saving Binary Data to a Paradox Binary Field via Code 
Author Message
 Saving Binary Data to a Paradox Binary Field via Code

I need to write (and read) a record to a binary field in (I can change
the field type to what ever makes the best sense if needed).

For example I have

        type MyRecord = record
                        value1: integer;
                        value2:double;
                        value3:string;
                        value4:boolean;
            end;

procedure AddBinRec(theRec:MyRecord; dataType: string;
idNumber:integer; resourceTitle:string);
var TheKey: string;
    DataRec: TBytesField;
begin
   DataRec := TBytesField.Create(AnalysisForm);
   TheKey := dataType + IntToStr(idNumber);

   ResourceTable.AppendRecord([TheKey,'', resourceTitle, DataRec]);
   ResourceTable.Post;
   DataRec.Free;
end;

The program blows up at the DataRec.SetData line.

Any help would be greatly appreciated!

Brien King



Fri, 10 Jul 1998 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Saving TMemo field data to a Blob field (Interbase Table) via SQL Update Query

2. Storing binary data in blob Fields..

3. Needed help on writing large binary data to MSSQL6.5 image field

4. Binary data in text fields within MS-Access

5. Problem retriving Binary Data from a Clipper Character field

6. binary data in char() field

7. Add Wav files to a binary field in a Paradox table

8. Converting binary (text file) to compress binary file

9. Saving Binary Files

10. Saving an Object as a Binary

11. Binary Save

12. Saving binary tree to disk...

 

 
Powered by phpBB® Forum Software