vb 6.0 变数问题
Dim currentquestion As Integercurrentquestion = 1Dim question1 As Stringquestion1 = "yoyo"go.Caption = ("question" & currentquestion)我想将 go 的 caption 变成 yoyo 而不是 question1 ,有甚麼辨法?
参考答案:使用数组吧,这样可以用它的索引。
如:
Dim question(1) As String
question(1) = "yoyo"
go.Caption = question(currentquestion)
------------------
看了楼主问题补充,不知道楼主这样做法用意何在呢,为什么要用到二维?