I am very new to object oriented programming, I used to program in a variety of languages. I stopped about 15 years ago as my needs diminished. I last programmed in clipper5. I am trying to learn VB and am using VB6. I used to replace names of variables with other variables that I could change in a loop
I have a list of check boxes named “check1” through “check5”, I want to replace the object name with a variable that I can change in a loop
var = “check”
i = 1
do while i < 6
var = var & str$(i)
var.Caption = Trim(adoCustRecordset("Name"))
adoCustRecordset.MoveNext
i = i + 1
loop
I have tried to Dim a variable as an object and then Set the object but to no avail, I could list all the check boxes but the above method was a standard for me in clipper5 and other languages. I am wondering if a method exists in VB6?