VBScript to C# question

M

Mark Fox

Hello,

I am porting some old ASP 3.0 VBScript code to
C#.NET and am not sure what the equivalent C# functions
are for a couple VBScript functions. So my first
question is:

1) Is there somewhere that lists old VBScript functions
and their equivalent C# functions?

More importantly, though:

2) What would the "Asc" and "ChrB" functions be in C#?

Asc:
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/office97/html/output/f1/d6/s5b26b.asp

ChrB:
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/office97/html/output/f1/d6/s5b26b.asp

Thanks for your help!
 
N

Natty Gur

Hi,

object s = Convert.ToInt32 ('a');
s = Convert.ToChar(97);

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
 
L

Lewis Wang [MSFT]

Hi Mark,

You may check the following links for your reference.

Migrates from VBScript Functions to C#
http://www.netcoole.com/asp2aspx/vbhtml/csfuncs.htm

String Members
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemstringmemberstopic.asp

Best regards,
Lewis

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

--------------------
| Content-Class: urn:content-classes:message
| From: "Mark Fox" <[email protected]>
| Sender: "Mark Fox" <[email protected]>
| Subject: VBScript to C# question
| Date: Wed, 27 Aug 2003 21:45:14 -0700
| Lines: 23
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNtHyv2c3m8e2+HSX69arxHY16B9A==
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:172183
| NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hello,
|
| I am porting some old ASP 3.0 VBScript code to
| C#.NET and am not sure what the equivalent C# functions
| are for a couple VBScript functions. So my first
| question is:
|
| 1) Is there somewhere that lists old VBScript functions
| and their equivalent C# functions?
|
| More importantly, though:
|
| 2) What would the "Asc" and "ChrB" functions be in C#?
|
| Asc:
| http://msdn.microsoft.com/library/default.asp?
| url=/library/en-us/office97/html/output/f1/d6/s5b26b.asp
|
| ChrB:
| http://msdn.microsoft.com/library/default.asp?
| url=/library/en-us/office97/html/output/f1/d6/s5b26b.asp
|
| Thanks for your help!
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top