B bihu Unregistered / Unconfirmed GUEST, unregistred user! 2000-03-08 #1 怎样让两个窗体共享数据? 在窗体一中定义了一个数组,在窗体2中改变它并返回给窗体1
歪 歪就歪 Unregistered / Unconfirmed GUEST, unregistred user! 2000-03-08 #2 把FORM2中的USES里,加上UNIT1,在FORM2的代码中,可以写: Unit1.YourArray[xxx] := nnn;
K Kang Unregistered / Unconfirmed GUEST, unregistred user! 2000-03-08 #4 FORM2中 USES Unit1 数组要在Unit1的Interface中定义 var Form1:TForm1; Yourarr:array[ ]of ;
C CJ Unregistered / Unconfirmed GUEST, unregistred user! 2000-03-08 #6 方法一:把叔祖定义在INTERFACE和IMPLEMENT之间 方法二:定义在FORM1的PUBLIC处,引用时:FORM1.ARRAYNAME
B bihu Unregistered / Unconfirmed GUEST, unregistred user! 2000-03-08 #7 定义在FORM1的PUBLIC处,但编译时unit1中undeclared arry
K koala Unregistered / Unconfirmed GUEST, unregistred user! 2000-03-08 #8 如果在PUBLIC里声明,则unit1要放在文件开始. Unit unit2 Interface Uses Windows, unit1.... ~~~~~ implementation ...