bihu 发表于 2005-6-14 20:15:41

[建议]用数据库做的密码登陆的labview例子 错误及修正

<P>1、程序最后没有关闭数据库</P>
<P>2、数据库中应为password字段,而非password1。</P>
<P>3、password with database(combo user name but not ok).vi</P>
<P>中查看已存在用户存在功能错误。一是索引名字时要按列索引,而非按行;二是comobo控件的items不能自动随数据库中用户多少而变化,应使用其StringAndValues[]属性代替strings[]属性设置Items,同时其属性的输入也要做相应的调整。改写后的代码如下:</P>
<P> <img src="attachments/dvbbs/2005-6/200561412145372.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2005-6/200561412145372.gif\');}" onmousewheel="return imgzoom(this);" alt="" /></P>
<P>不知我提的这几点是否正确,请大家讨论。</P>
<P></P>

cpubbs 发表于 2005-6-14 21:23:49

运行能出来正确的答案就好了,可能是我以前做这个的时候有疏忽,抱歉!

cpubbs 发表于 2005-6-14 21:24:34

fo925 发表于 2009-9-19 10:53:12

收下看看 谢谢
页: [1]
查看完整版本: [建议]用数据库做的密码登陆的labview例子 错误及修正