版主好!上次提的问题已解决,原因在于我是新手,演示方法没选对。今天我在编写确认命令按钮的代码时,系统提示出错,请指教,代码如下:
string qy
qy = "(" + "用户名" + "=" + "'" + sle_1.text
+ "'" + ")" + "and"+
"(" + "用户口令" + "=" + "'" + sle_2.text + "'" + ")"
dw_1.setfilter(qy)
filter(dw_1)
dw_1.retrieve(1)
sle_1.text = string(dw_1.rowcount())
if dw_1.rowcount() =0 then
messagebox ("警告","你是合法的用户吗?请重新输入!",stopsign!)
else
open(w_pwindow)
close(w_password)
end if
系统提示错误如下:
error
c0031:syntax err
error
c0031:syntax err
warning c0014:undefined variable:w_pwindow
error
c0116:reference argument type doesn't match function definition:open