L
leilu
Unregistered / Unconfirmed
GUEST, unregistred user!
放了7天假期,被这个问题这么了几个晚上没有睡觉,问题还是没有解决,大家看看能否帮忙: try
tmpStream:= TMemoryStream.Create;
tmpStream.WriteComponent(FCode_A);
tmpStream.Position:= 0;
TBlobField(tmpTable.FieldByName('MT_ASSISTANT_T')).LoadFromStream(tmpStream);
finally
tmpStream.Clear;
FreeAndNil(tmpStream);
end;
运行到tmpStream.WriteComponent(FCode_A);就报错,FCode_A: TTxt;
TTxt= class (TEdit)
tmpStream:= TMemoryStream.Create;
tmpStream.WriteComponent(FCode_A);
tmpStream.Position:= 0;
TBlobField(tmpTable.FieldByName('MT_ASSISTANT_T')).LoadFromStream(tmpStream);
finally
tmpStream.Clear;
FreeAndNil(tmpStream);
end;
运行到tmpStream.WriteComponent(FCode_A);就报错,FCode_A: TTxt;
TTxt= class (TEdit)