以下是引用csyx在2023-4-20 22:55:58的发言:
不一定吧,如果yy是字符型,宏替换还是要执行的
yy = '123'
Caption='&yy'
? Caption
帮我解决一下:
COUNT FOR 路数比='3:0:0' to lsb1
COUNT FOR 路数比='2:1:0' to lsb2
COUNT FOR 路数比='2:0:1' to lsb3
COUNT FOR 路数比='1:2:0' to lsb4
COUNT FOR 路数比='1:1:1' to lsb5
COUNT FOR 路数比='1:0:2' to lsb6
COUNT FOR 路数比='0:3:0' to lsb7
COUNT FOR 路数比='0:2:1' to lsb8
COUNT FOR 路数比='0:1:2' to lsb9
COUNT FOR 路数比='0:0:3' to lsb10
FOR i=1 TO 10
tt=ALLTRIM(STR(i))
thisform.pageframe1.page1.container4.label&tt..Caption=lsb+STR(i)
thisform.pageframe1.page1.container4.label&tt..refresh
thisform.pageframe1.page1.container4.init
ENDFOR
thisform.pageframe1.page1.container4.label&tt..Caption=lsb+STR(i)这句还是不行,研究了半天还是不行,我就是要打印lsb1到lsb10,出来
之前是用表来统计,我改变想法了,我想直接用变量
lsb+STR(i)主要是这里错了,老是提示找不到lsb,说明后面的1没有识别到
[此贴子已经被作者于2023-4-20 23:12编辑过]