主题:求高手指点JAVAscrip转化成为VBsrip.
<SCRIPT LANGUAGE="JavaScript">
<!--//
function checkzhuce()
{
if (document.form.user.value.length<1)
{
alert("请填写用户名!");
document.form.question.focus();
return false;
}
if (document.form.password.value.length<1)
{
alert("请填写密码!");
document.postart.key.focus();
return false;
}
}
//-->
这个是一个在ASP下面检查data这个access数据库中的user这个表的一段代码
用VB是如何实现
我写的代码如下:不知道是否正确,请高手指点
function checkzhuce()
if document.form.user.value.length<1
alert("请填写用户名!");
document.form.question.focus();
return false;
endif
if document.form.password.value.length<1
alert("请填写密码!");
document.postart.key.focus();
return false;
endif
<!--//
function checkzhuce()
{
if (document.form.user.value.length<1)
{
alert("请填写用户名!");
document.form.question.focus();
return false;
}
if (document.form.password.value.length<1)
{
alert("请填写密码!");
document.postart.key.focus();
return false;
}
}
//-->
这个是一个在ASP下面检查data这个access数据库中的user这个表的一段代码
用VB是如何实现
我写的代码如下:不知道是否正确,请高手指点
function checkzhuce()
if document.form.user.value.length<1
alert("请填写用户名!");
document.form.question.focus();
return false;
endif
if document.form.password.value.length<1
alert("请填写密码!");
document.postart.key.focus();
return false;
endif