具有变量

时间:2017-01-13 16:17:04

标签: vba excel-vba excel

如果我想在变量名称中使用变量,我该怎么做?我有点生疏,无法记住或找到正确的语法来做到这一点。

例如:

For x = 1 To 6
    txtBoard [x].Caption = rst(0)
    If Not rst(0) = "" Then
        boardPresent(x) = True
    End If
    txtBoardSer [x].Caption = rst(1)
    rst.MoveNext
Next

1 个答案:

答案 0 :(得分:1)

使用您的userform对象的public static void main(String[] args){ String x = "abcd"; permu("", x, 2); } public static void permu(String pre, String x, int r){ if(x.length() == 0) System.out.println(pre.substring(0, r)); else{ for(int i = 0; i < x.length(); i++) permu(pre + x.charAt(i), x.substring(0, i) + x.substring(i + 1, x.length()), r); } } 集合来按名称

获取控件
Controls