Saeqsae

vba FactoryTalk View - Parameters on VBA

2 posts in this topic

Hi all, i'm creating a ComboBox using Visual Basics on Factory Talk View SE. My issue comes when i tried to add items to the ComboBox. But this items must be values from a P - Parameters List.

How can i do this? I have a little code created but doesn't work. Anyone can help me?

Thanks in Advanced

PD: Here is my actual code.

Private Sub Display_AnimationStart()

Dim List As StringList
Dim Msg1 As String

    Set List = Me.TagParameters
    Msj1 = Lista.Item(1)
    
    ComboBox1.AddItem (Msj1,1)

End Sub

Edited by Saeqsae
Missed a number in the example Code

Share this post


Link to post
Share on other sites

Not super fluent in what you're trying to do, but does calling it List most every where and then calling it Lista when you assign it to msj1 not cause an issue?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now