form1
type
pnodedata = ^Tnodedata;
Tnodedata = record
PARENTID: INTEGER;
id: string;
end;
。。。。。
procedure TMDIflfg.Button1Click(Sender: TObject);
var
node: ttreenode;
nodedata : Pnodedata;
begin
if(tree.selected<>nil) then
node :=tree.selected
else
exit;
if node.Level =2 then
begin
addflfg.show;
addflfg.edit1.setfocus;
addflfg.groupbox1.Caption := '添加'+ node.parent.Text + '下子节点';
end;
form2:
sql := 'insert into flfg (lb1_xh, lb1, lb2_xh, lb2, xh, rdyj, wfxw, cfyj, cfzljfd) values ('''+
pnodedata(node.Parent.data)^.id +''',''' + node.parent.Text + ''','''+
edit1.text +''',''' + memo1.lines.text + ''','''+ '' +''',''' +
'' + ''', '''+ '' + ''', '''+ '' +''','''+
'' +''')';
我就是找不到pnodedata(node.Parent.data)^.id 和node.parent.Text 这两个值