RSView SE and Executecommand

Greg Fowlds

Member
Join Date
Apr 2004
Location
Currently, Waiheke Island, NZ
Posts
123
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?
 
What version are you using, I use 4.0. This is how I pass a string from the VBA program to a tag.

ThisDisplay.RecipeName.Value = txtRecipe.Text
ThisDisplay.RecipeName.Download

RecipeName is a string tag.
 

Similar Topics

Hello fellow wirenuts, I am looking to find the P.B. touch indicator option on version 13.00 and failing. It has been a year or so since I last...
Replies
9
Views
330
Hello, I have converted RSView 32 to FTView SE 14 (I have tested FTView 12 before as well and there were some difficulties so I moved on to...
Replies
4
Views
274
Okay, something I have not seen before.. RSView SE. I am working on an existing project. There is a value the customer wants trended and it is...
Replies
4
Views
824
I have a request to integrate a pause button in RSlogix to be able to start/stop a video. Video format is not defined at the moment, so it could...
Replies
2
Views
804
Hello everyone, I am having a problem with conversion from RSView32 to FT View SE Local project on version 12.00 (CPR 9 SR 12). Firstly, I have...
Replies
6
Views
1,425
Back
Top Bottom