比如我声明了:
type
xmltree = class
public
str:string;
end;
po=^xmltree;我想动态使用这个类比如xmlpoint:po;
new(xmlpoint);
xmlpoint^.str:='sjsjs';可是好象会出错这是为什么该怎么样实现他呢?请各位帮忙!
type
xmltree = class
public
str:string;
end;
po=^xmltree;我想动态使用这个类比如xmlpoint:po;
new(xmlpoint);
xmlpoint^.str:='sjsjs';可是好象会出错这是为什么该怎么样实现他呢?请各位帮忙!
解决方案 »
- 怎么样让delphi 调用codesoft 选择打印机呢
- to 大侠们
- 用storedproc组件运行存储过程,在sql 跟踪器里如何显示运行两次呀?
- 过年导粪的注意啦!!
- Sql server数据库,设置一字段ID为标识,标识种子1,递增为1,如何添加记录?
- 制作安装程序中的烦恼
- 关于sql查询的一个初级问题
- 如何让没有安装ACCESS2000的机器也能运行基于ACCESS数据库的程序?
- 如何合并Excel单元格(急)
- 请教:在窗体中放2个Label控件,然后怎么想办法让她们横的对齐或者竖的对齐呢?
- 求教:请大家帮我看看这个非常简单的鼠标钩子?
- 鼠标进入button时的事件响应:OnEnter
var
Myxmltree: xmltree;
begin
Myxmltree := xmltree.Create;
Myxmltree.str := '1234';
ShowMessage(Myxmltree.str);
Myxmltree.Free;
end;
new(xmlpoint);
xmlpoint^:=xmltree.Create;//创建事例
xmlpoint^.str:='sjsjs';
ehom(?!) 你能说的更详细一点吗?谢谢了哦 !
type
xmltree = class
public
str:string;
end;
po=^xmltree;
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var xmlpoint:po;
begin
new(xmlpoint);
xmlpoint^:=xmltree.Create;
xmlpoint^.str:='sjsjs';
ShowMessage(xmlpoint^.str);
xmlpoint^.Free;
dispose(xmlpoint);
end;