delphi中怎样输出记录型变量
追问:要用showmessage输出,怎么弄啊!谢谢哈
追问:要用showmessage输出,怎么弄啊!谢谢哈
答案:type
TMyRecord = record
param1:Integer;
param2:Integer;
parame3:string;
//....
end;
function GetMyRecord: TMyRecord;
begin
//...
result.param1 := 1;
result.param2 := 2;
result.param3 := 'my record';
end;
其他:user:=edit1.Text; showmessagefmt('%d,%s,%s',[m_record.param1,m_record.param2,m_record.param3]); adotable1.count