How can I get the value of a record field? eg,
Sorry, my description is not clear, I have such a big record like this
type
myRec=record
a:byte;
c:single;
//// a lot of fields
end;
var
nowmyrec:myrec;
tmystr:TMemoryStream;
implementation
procedure TForm1.FormCreate(Sender: TObject);
begin
tmystr:tmemerystream.create;
tmystr.LoadFromFile(ExtractFilePath(Application.exename)+'1.data');
tmstr.Position:=0;
tmstr.readbuffer(nowmyRec,sizeof(myRec));
end;
if nowmyRec fields are 1000, how can I get field dll values up to 1000 form.edits, please use a write point, I want to use rtti records, but delphi2007 does not support this. if i use delphi2010, do you have other ways?
Blockquote
source
share