登陆窗口的确定中写 string id, pass string l_id,l_pass l_id=sle_1.text l_pass=sle_2.text select useid,usename,password,level into :id, :usename, :pass, :level from denglu where denglu.useid=:l_id; if id=""then messagebox("","用户不存在!") return end if if l_pass=pass then open(w_1) else count++ messagebox("","密码错误!") if count=3 then messagebox("","您无权使用本系统!") halt end if end if
再在后面那个窗口中写
close(w_log) if level = "1" then this.changemenu(m_gaoji) end if if level = "0" then this.changemenu(m_putong)