I'm trying to write to an objects .Value based on a different value for the objects number.
So if the object number is 1 then:
PumpSetpoint1.Vaule = 10
If the object number is 2 then:
PumpSetpoint2.Vaule = 10
I can concatenate a string to match what I want but it won’t work with dot fields.
I think I’ve seen something like declaring an object and then passing the object with the .value into it and then wright to it.
Dim PumpSP As Object
PumpSP = “PumpSetpoint1.name”
PumpSP.Vaule = 10
So if the object number is 1 then:
PumpSetpoint1.Vaule = 10
If the object number is 2 then:
PumpSetpoint2.Vaule = 10
I can concatenate a string to match what I want but it won’t work with dot fields.
I think I’ve seen something like declaring an object and then passing the object with the .value into it and then wright to it.
Dim PumpSP As Object
PumpSP = “PumpSetpoint1.name”
PumpSP.Vaule = 10
Last edited: