M
MTTrader
Can you create two variables that build objects names and change one object
value by setting them equal to each other. I have tried two string vars and
it just replaces one string with the other instead of changing the objects
value.
The objects I want to change are text fields on a form.
This is what I have tried.
Dim strObj1 as string
Dim strObj2 as string
Dim counter as integer
loop until counter = 10
strObj1 = "Me.ObjName" & counter & "a"
strObj2 = "Me.ObjName" & counter & "b"
strOjb1 = strObj2
Counter + 1
end loop
I have also tried using the set command.
strOjb1 end up with the value: "Me.ObjName1a"
value by setting them equal to each other. I have tried two string vars and
it just replaces one string with the other instead of changing the objects
value.
The objects I want to change are text fields on a form.
This is what I have tried.
Dim strObj1 as string
Dim strObj2 as string
Dim counter as integer
loop until counter = 10
strObj1 = "Me.ObjName" & counter & "a"
strObj2 = "Me.ObjName" & counter & "b"
strOjb1 = strObj2
Counter + 1
end loop
I have also tried using the set command.
strOjb1 end up with the value: "Me.ObjName1a"