Eval/Evaluate Statement in FactoryTalk VBA.

numnum7

Member
Join Date
Mar 2010
Location
Amman
Posts
15
Hello,
I wrote some vba code for a Factorytalk View Studio SE application display. The code should be around 100 lines long using something similar to eval/evaluate. However, I couldn't find anything along that line so I had to resort to brute forcing the whole thing while taking all possibilities/etc, and ended up writing a 10,000 lines long code.

So I ask, is there any equivalent of the eval statement? I'm using CR 5.10.

Note: For those who don't know, what eval does is evaluate a string statement as if it has been issued from the code editor. For example, like this:

dim x1,x2,str as string

x1 = "Group1"
x2 = "15"

str = x1 & ".Left = " & x2

eval(str)
 
I searched more on the subject and came to the conclusion that VB 6 (from which vba is based on) contains no such thing as an eval statement.
 

Similar Topics

Hi. We're refurbishing a used machine with a Maple HMI5070TH HMI. I'm trying to establish the log-in details. There are four users; operator...
Replies
0
Views
335
Hi everyone! I am very new here (only a few hours old) but I am so glad this website exists. It has proved so useful already and I hope to be...
Replies
1
Views
1,999
Hi all, Having a little trouble getting the result I require, I'm close but no cigar. Basically, I am wanting to display a table within the...
Replies
2
Views
3,942
I'm trying to figure out a cheap/simple way of saving some recipe and configuration data out of a Compactlogix PLC (L33ER) and Panelview Plus 6...
Replies
3
Views
2,066
I am hoping to accomplish this in a CompactLogix. I know there is enough memory. It's the method that I haven't figured out yet. I have parts...
Replies
5
Views
1,549
Back
Top Bottom