怎么讲一个record清零? 有没有一次操作的方法,对每个成员依次操作太麻烦了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 type TTestRecord = record ttStr: string; ttInt: integer; end;var _tr,tr: TTestRecord;procedure TForm1.FormCreate(Sender: TObject);begin_tr.ttStr:= '123';_tr.ttInt:= 123;end;procedure TForm1.Button1Click(Sender: TObject);begin CopyMemory(addr(_tr),addr(tr),sizeof(_tr));end;procedure TForm1.Button2Click(Sender: TObject);var i: integer;begin i:= _tr.ttInt; showmessage(inttostr(i)); i:= tr.ttInt; showmessage(inttostr(i));end;我不知道它为什么没了~~~~~ 求大家帮我写个简单的报表,唉头疼!!!在线等!!! 内存管理的难点在哪 Delphi开发的系统编译问题 有关ADO与BDE的问题.请大家帮忙! 谢谢 2 用StoredProc的时候,它找我麻烦,大哥们帮我摆平啊!!! 如何从网络中的另外一台机子复制文件到本机??(在线) 为什么在安装了BCB6之后Delphi6的某些包在Delphi启动时不能加载? 高分:怎样修改服务器的时间,通过客户端??? 请帮我看看用的non data-ware 对不对 客户端封装,dll,Tclientsocket,onread事件,接收成功后再返回值。 如何入1个表导入数据到另1个相同表???
TTestRecord = record
ttStr: string;
ttInt: integer;
end;var
_tr,tr: TTestRecord;procedure TForm1.FormCreate(Sender: TObject);
begin
_tr.ttStr:= '123';
_tr.ttInt:= 123;
end;procedure TForm1.Button1Click(Sender: TObject);
begin
CopyMemory(addr(_tr),addr(tr),sizeof(_tr));
end;procedure TForm1.Button2Click(Sender: TObject);
var
i: integer;
begin
i:= _tr.ttInt;
showmessage(inttostr(i));
i:= tr.ttInt;
showmessage(inttostr(i));
end;我不知道它为什么没了~~~~~