请大大详细点 最好写个列子 下面是主表单里调用子表单的代码
PUBLIC zhe,zhe1
xx1=Thisform.Text6.Value
select * from 图纸信息 where 图纸编号=xx1 into cursor tempc4
do form three
子表单的combo1事件代码
PUBLIC xx1
xx1=" "
select * from 图纸信息 where 图纸编号=xx1 into cursor tempc4
IF !DIRECTORY(SYS(2023)+"\tingyu")
mkdir SYS(2023)+"\tingyu"
ENDIF
if !file(SYS(2023)+"\tingyu\ty"+Allt(Str(Recn()))+".gif ")
Copy Memo 图纸 To SYS(2023)+"\tingyu\ty"+Allt(Str(Recn()))+".gif "
endif
YU=SYS(2023)+"\tingyu\ty"+Allt(Str(Recn()))+".gif "
X=Adir(Myml,YU)
IF X#0
wjsize=Myml(1,2)
endif
if wjsize>0
Thisform.Image1.Picture=SYS(2023)+"\tingyu\ty"+Allt(Str(Recn()))+".gif "
ENDIF
Thisform.Text2.Value=tempc4.图纸编号
Thisform.Text3.Value=tempc4.最大宽度
Thisform.Text4.Value=tempc4.最大高度
Thisform.Text5.Value=tempc4.内径长度
Thisform.Text6.Value=tempc4.外径长度
Thisform.Text7.Value=tempc4.底板厚度
Thisform.Text8.Value=tempc4.螺丝孔数
Thisform.Text9.Value=tempc4.边齿数
Thisform.Text10.Value=tempc4.齿数
Thisform.Text11.Value=tempc4.内孔数量
Thisform.Text12.Value=tempc4.重量
Thisform.Text13.Value=tempc4.中心对称
Thisform.Text14.Value=tempc4.上下对称
Thisform.Text15.Value=tempc4.有无波面
Thisform.Text16.Value=tempc4.左右对称
Thisform.Text17.Value=tempc4.非对称
Thisform.Text18.Value=tempc4.模具形状一
This.Refresh
thisform.refresh()