我的项目文件在D\demo,demo中还有dadt、form和pic三个文件夹,类库aaa.vcx在form文件夹内,在登录界面的确定按钮的click中:写入
n=n+1
cname=alltrim(thisform.text1.value)
txtpas=alltrim(thisform.txtpassword.value)
if n=3
thisform.release
endif
set exact on
go top
locate for yhm=cname.and.mima=txtpas
if eof()
messagebox('用户名或密码错误,请重新输入!',64,'系统提示')
thisform.txtpassword.value=''
thisform.txtpassword.setfocus()
return
else
thisform.visible=.f.
[b]set classlib to aaa.vcx additive
tbs=creat('aaa.vcx')
tbs.dock(0)
tbs.show
do main.mpr
endif
set exact off