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;'怎么解决?请教各位高手,谢谢!!!
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;'怎么解决?请教各位高手,谢谢!!!
解决方案 »
- 请问StringGrid1SetEditText事件是什么触发的?
- 求一个统计类的SQL语句,想了好半天没有答案了
- 一个错误,请大家给指点一下
- 对于一个控件的TStrings属性的属性编辑器的问题,就像TCombobox的Items属性一样
- 如何知道一个函数被调用和退出?(想知道函数被调用的顺序和调用关系)
- 别人提供的VB控件在DELPHI里能用吗?如果能,怎么用?
- 安装Fastreport 时怎么copy FR_Class?
- 我在帮别人做一个学生学籍管理系统,有合适的图片吗?给我一点呀。
- Interface not support
- 小东西照样有50分。怎样取extended的整数部分?转换成integer?这是怎么啦, 系统老是将我的问题转换成别人的问题
- 如何判断本程序是否在运行中?
- 在做东东的时候的三个问题,网络连接,单实例,报表
改在formshow()