delphi - how can i get the record field value -


how can record field value? example,

sorry , description not clear, have big record this

type myrec=record a:byte; c:single; ////  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 fields of nowmyrec 1000, how can dll of field value 1000 form.edits , please donot use record point ,i want use rtti of record,but delphi2007 donot support that. if donot use delphi2010 ,do have other ways?

blockquote

you need first declare record variable rec1: myrec;

var   rec1: myrec;   myvalue: single; begin   myvalue := rec1.c end; 

is want?


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -