Hello!
I am writing a general purpose Export/Import utility and I need to
handle memo fields differently when I am copying data from one table to
another.
I tried doing this:
Try
Stream1 := TBlobStream.Create(Table1.Fields[X], bmRead);
Stream2 := TBlobStream.Create(Table2.Fields[X], bmRead);
Stream2.CopyFrom(Stream1, Stream1.Size);
except
Showmessage('Unable to Copy Memo field');
ErrorCode := True;
end;
But I got this syntax error message: [Error] Export.pas(114):
Incompatible types: 'TBlobField' and 'TField'
The "X" variable denotes the position of the field in the field
structure. What do I call the field in my code?
I have already trapped for the fields that are memo fields in my
procedure.
I hope this makes sense...;-)
[Non-text portions of this message have been removed]