Variable evaluation
-
Hi, I would like to perform some run-time coding such as: s1 = "testing" s2 = "s1" s3 = evaluate(s2) Then, s3 will become "testing". Is it possible to do this in VB.NET or VB6? Many thanks, Wilfred
If your attempting to do what I think your are, the short answer is no. During the debugging session, most changes you make while the code is running will cause your app to restart. You'll have to run your app again in order to get your app back to the point where you made the changes. If your talking about writing your own language interpreter, sort of like your own version of VB, then you would have to research expression evaluation. You could start with Runtime Compiled Symbolic Expressions[^] here on CodeProject. It's written in C#, but is can be converted to VB.NET. You might check out Exploring the Microsoft Script Control [^] on MSDN. This article has some root into what you might be looking at doing. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome