qidudoo 发表于 2006-1-3 07:39:12

[求助]为什么得到了不同的结果?大人帮忙啊

1st attatched question :为什么这两个while loops 得到了不通的结果.
2nd attatched qusetion :为什么我用LV调用state bar ActiveX ,顺序结构的第一项(正在进行录入操作)不能在state bar 上显示,顺序结构的第二项可以正常显示.
十分感谢
<img src="attachments/dvbbs/2006-1/20061223363171523.jpg" 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/2006-1/20061223363171523.jpg\');}" onmousewheel="return imgzoom(this);" alt="" />
<img src="attachments/dvbbs/2006-1/2006122339033555.jpg" 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/2006-1/2006122339033555.jpg\');}" onmousewheel="return imgzoom(this);" alt="" />

afei 发表于 2006-1-4 03:08:30

<P>第一图:我觉得结果应该是一样的,由于程序没有为‘响应按钮’定义事件,所以在运行时直接读取‘响应按钮’的默认值,另外while循环上数据通道的值以第一次读取的值为准,直到循环结束,而两个循环上数据通道的值很显然是相对应的,所以我觉得结果应该是一样的。----- 也许我理解错了呵呵</P>

cpubbs 发表于 2006-1-3 08:34:24

<P>我没有用过这种菜单获取办法,我看名称感觉是菜单获取的!第二个图能不断地获取你的菜单,第一个图把获取的放在循环外面,可能一次也无法获取,所以不相同!</P>


<P>不知道说得对不对,只是看名字来估计!</P>

qidudoo 发表于 2006-1-3 18:23:42

qidudoo 发表于 2006-1-4 22:32:54

<P>楼上的,两个while的结果确实是不一样的,</P>

lxpzj1234 发表于 2006-1-5 18:58:24

<P>發原程序啊,這樣才能看清楚!!要是光看圖還真不好說!!</P>
页: [1]
查看完整版本: [求助]为什么得到了不同的结果?大人帮忙啊