form1的formstyle为fsnormal.窗体设定public中 xcaption:string,通过onclick()打开form2,代码如下:
application.createform(tform2,form2);
form2.show;form2窗体被罗列在availabe forms列表中.
form2窗体formcreat()中输入'caption:=form1.xcaption;'语句.
执行程序出现以下错误:
'access wiolation at address 004c7cd4 in module 'prj03.exe'.read of address00000340',process stopped.use step or run to continue.
指向'caption:=form1.xcaption'此句有错.还有在form1中implementation参数中已写入'uses form2form;'
form2中implementation参数中已写入'uses form1form;'怎么解决?请教各位高手,谢谢!!!