已知用户表是 用户.dbf (bh,xm),口令表为 密码.dbf (kl)登录表单里有一个combo1框,用于选择用户用户名,有一个文本框用于输入口令如果用户名与预存的口令正确,可以进入财务系统,否则提示非法用户。表单有一个按钮,一个“退出”按钮,请为其中的按钮设计代码

答: “按钮的chick事件代码如下

z1=

z2=

use 用户

name=
loca for xm=

if found()

  use 密码

  pas=

  loca for kl=
if found()

thisform.label2.caption=
  do 财务

else
  thisform.label2.caption=

  thisform.text1.value=

thisform.refresh

z2=

if z2=

thisform.label2.caption=

thisform.text1.enabled=

thisform.combo1. enabled=

  endif

endif

else
  thisform.label2.caption=
  thisform.combo1.value=

thisform.refresh

z1=

if z1=

thisform.label2.caption=

thisform.text1.enabled=

thisform.combo1. enabled=

  endif

endif

 


、根据下列E-R 图,导出相应关系模型