Eval() in VB.NET ?? 
Author Message
 Eval() in VB.NET ??

Can any one please tell me,

How can i Evaluate an object at runtime in VB like JScript
with EVAL().

I using the following code:

thumb.Save("C:\abc.gif", ImageFormat.Png)

I want it: to be like
thumb.Save("C:\abc.gif", Eval("ImageFormat." &
varExtension)

Other wise i am using Select Case for every type of File
Extension.

TIA

NMS



Thu, 21 Jul 2005 05:22:12 GMT  
 Eval() in VB.NET ??
Hi,

You may check the following article:
http://msdn.microsoft.com/msdnmag/issues/02/09/CuttingEdge/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.

Regards,

Bill Cheng
Microsoft Support Engineer
--------------------
| Content-Class: urn:content-classes:message


| Subject: Eval() in VB.NET ??
| Date: Sat, 1 Feb 2003 13:22:12 -0800
| Lines: 19

| MIME-Version: 1.0
| Content-Type: text/plain;
|       charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcLKN/xLbMhztWLlSIa3+1oX41KCLw==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.dotnet.languages.vb
| Path: cpmsftngxa08
| Xref: cpmsftngxa08 microsoft.public.dotnet.languages.vb:87904
| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Can any one please tell me,
|
| How can i Evaluate an object at runtime in VB like JScript
| with EVAL().
|
| I using the following code:
|
| thumb.Save("C:\abc.gif", ImageFormat.Png)
|
| I want it: to be like
| thumb.Save("C:\abc.gif", Eval("ImageFormat." &
| varExtension)
|
| Other wise i am using Select Case for every type of File
| Extension.
|
| TIA
|
| NMS
|



Thu, 28 Jul 2005 20:59:05 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. JScript.Eval in VB.NET

2. Eval function in VB .Net and C#

3. Eval Function in VB.NET

4. EVAL function in VB.NET - where is it?

5. Does VB.NET has Eval Function?

6. Eval Function in VB.NET

7. Eval / Execute in vb.NET

8. Jscript.net has a eval method.Is there a similar funcion in VB.net?

9. VB.NET: Steps for Converting a Windows .NET Application to a Web .NET Application

10. ADO.NET with ASP.NET using VB.NET

11. how to use the system.net.sockets and system.net in VB.net

 

 
Powered by phpBB® Forum Software