以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]循环全局代码的值 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=151427) |
-- 作者:OKK -- 发布时间:2020/6/23 10:31:00 -- [求助]循环全局代码的值 已设置全局代码如下: public aa1 as integer = 8374 public aa2 as integer = 9483 public aa3 as integer = 3764 public aa4 as integer = 3623 ...... public aa1000 as integer = 4736 现在要获取他们的值 dim hg1 as integer = aa1 dim hg2 as integer = aa2 dim hg3 as integer = aa3 ...... dim hg1000 as integer = aa1000 就是最后这一步,获取他们的值的时候,要写1000条,太多了,能不能使用循环来获取已设置的全局代码的值
[此贴子已经被作者于2020/6/23 10:38:40编辑过]
|
-- 作者:有点蓝 -- 发布时间:2020/6/23 10:33:00 -- 无法循环,只能逐个赋值 aa1=1 aa2=2 |