FT View SE V10 - VBA - Numeric Input Object .Value

Tanquen

Member
Join Date
Jul 2014
Location
CA
Posts
163
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
 
Last edited:
Something like this but I don't know what the "UserForm1.Controls" part would be for a View SE Numeric Input Object:

Dim cnt As Integer
Dim Ctrl As Object
For cnt = 1 To 3
Set Ctrl = UserForm1.Controls("TextBox" & cnt)
With Ctrl
.Visible = False
.Enabled = False
End With
Next cnt
 
To write a value to PumpSetpoint1, it looks like it would be:

Dim PumpSP As Object
Set PumpSP = ThisDisplay.PumpSetpoint1
PumpSP.Vaule = 10

But it don't work when I try and concatenate the Numeric Input Objects number.

Dim PumpSP As Object
Set PumpSP = "ThisDisplay.PumpSetpoint" & "1"
PumpSP.Vaule = 10
 
Last edited:
You can use something like:

Set PumpSP = ThisDisplay.GetElement(“PumpSetpoint1”)

I’m doing this from my phone, pardon syntax errors.

Thanks that was just about it. I had tried so many things with Controls() and others but it was FindElement().

This worked!
Set XObject = ThisDisplay.FindElement("PumpSetpoint" & "1")
 

Similar Topics

I have some code that is working but only if linked to mouse button 1 and I really need it to be a button 2 or right mouse click function. The...
Replies
0
Views
9,528
Anyone know how to change the mouse icon to something else using VBA? It looks like it can be done with VBA forms and based on the object the...
Replies
0
Views
2,210
Is there a way to set a clicked object to have focus. I'm trying to open a popup next to where I clicked and "Display popup /RP /T" with the...
Replies
1
Views
2,354
Hey all, First post! I am trying to embed a web browser into my application to enable us to watch live feed of our AXIS IP Camera. The problem is...
Replies
0
Views
918
I have a FT View ME project that we need to make a simple change to and all we have is the .mer file. I tried to restore it with the application...
Replies
1
Views
1,071
Back
Top Bottom