EVAL function in VB.NET - where is it? 
Author Message
 EVAL function in VB.NET - where is it?

could you please tell me how do I evaluate strings in VB.Net
i want to cancatenate string with variable and execute it
something like:
if i want to take the value of strVar5
i = 5
strVar1 = Eval("strVar" & i)


Mon, 18 Apr 2005 22:14:57 GMT  
 EVAL function in VB.NET - where is it?

could you please tell me how do I evaluate strings in VB.Net
i want to cancatenate string with variable and execute it
something like:
if i want to take the value of strVar5
i = 5
strVar1 = Eval("strVar" & i)

You should be able to use the CallByName function for this:

http://www.dotnet247.com/247reference/msgs/18/90485.aspx


Microsoft MVP (Visual Basic)



Tue, 19 Apr 2005 03:52:47 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Eval function in VB .Net and C#

2. Eval Function in VB.NET

3. Does VB.NET has Eval Function?

4. Eval Function in VB.NET

5. I am learning VB.NET and am wondering....

6. i am using vb.net and crystal reports for visual studio.net

7. Eval() in VB.NET ??

8. JScript.Eval in VB.NET

9. Eval / Execute in vb.NET

10. execute a variable as a function/sub procedure (like eval function in java(script))

11. eval function? how to call dynamic function name

12. Looking for a VB function like Eval() in ASP or Interpret in REXX

 

 
Powered by phpBB® Forum Software