标题:我想编写一个循环可不知怎么写,请大家帮帮忙!!
取消只看楼主
djlwydhs
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2008-3-27
 问题点数:0 回复次数:0 
我想编写一个循环可不知怎么写,请大家帮帮忙!!
我想编写一个循环可不知怎么写,请大家帮帮忙!!
我的WEB页面中有24个TextBox,分成两列
......TextBox1....TextBox21
      TextBox2....TextBox22
         .            .     
      TextBox12....TextBox32
我想对页面中的同行两个TextBox进行比较,让左边的大于右边
数据如下:
         8             5
         1             6
         空              2
.......
我编写的程序为:
dim aa as string  
dim ab as string
dim i as Integer
for i=1 to 12  
aa="TextBox" & str(i) & ".text"
ab="TextBox" & str(i+20) & ".text"
if Isdbnull(aa) and ab>0 or aa < ab then
msg.text="第" & srt(i) & "行数据错误!"
Exit   For
endif
next
这是我编写的,可怎么调试都不行,请大家帮帮忙!谢谢
搜索更多相关主题的帖子: 编写 
2008-03-27 19:49



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-205715-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.417841 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved