回复 15楼 cjc1010
*****主程序MAIN.PRG****************
CLEAR ALL
SET EXACT ON
SET SAFETY OFF
SET DELETED On
_screen.Visible =.f.
SET EXCLUSIVE ON
SET TALK OFF
SET DATE TO ansi
SET CENTURY ON
&&日期年份显示为4位数
SET MULTILOCKS ON
CLOSE ALL
DO FORM psd
&&运行登录程序
READ EVENTS
*********登录程序代码 “确定”按钮代码*************
SELECT czy
&&账户信息表
GO TOP
LOCATE FOR ALLTRIM(CZID)=ALLTRIM(THISFORM.TEXT1.Value) OR ALLTRIM(nam)=ALLTRIM(thisform.text1.Value)
IF !FOUND()
=MESSAGEBOX('无此用户信息!',0+48,'提示')
THISFORM.TEXt1.SETFOCUS
RETURN
ELSE
IF ALLTRIM(PSD)<>ALLTRIM(THISFORM.TEXT2.Value)
=MESSAGEBOX('口令错误!',0+48,'提示')
THISFORM.TEXT2.SetFocus
RETURN
ENDIF
ENDIF
DO FORM main
&&运行主表单
RELEASE thisform
READ EVENTS
**********主表单的 QUERYUNLOAD()代码*********************
CLOSE ALL
CLEAR WINDOW
CLEAR EVENTS
RELEASE thisform
QUIT