Greg Fowlds
Member
Am trying to pass some string data from VBA to a HMI tag.
Integers are passed ok but not string type.
I have a Int tag in HMI and in VBA:
Dim AnInt as integer
AnInt = 5
Executecommand "MyIntTag + " + AnInt
This functions ok.
Now with a string tag defined in HMI as memory.
Dim AnString as string
AnString = "Hello"
Executecommand "MyStringTag + " + AnString
This fails with cannot find tag in database.
If I try to pass a date "7 Feb 2008 20:20"
I get Unexpected characters in expression errors.
How can I get a string from VBA into an HMI string tag?
Integers are passed ok but not string type.
I have a Int tag in HMI and in VBA:
Dim AnInt as integer
AnInt = 5
Executecommand "MyIntTag + " + AnInt
This functions ok.
Now with a string tag defined in HMI as memory.
Dim AnString as string
AnString = "Hello"
Executecommand "MyStringTag + " + AnString
This fails with cannot find tag in database.
If I try to pass a date "7 Feb 2008 20:20"
I get Unexpected characters in expression errors.
How can I get a string from VBA into an HMI string tag?