By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,975 Members | 1,528 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,975 IT Pros & Developers. It's quick & easy.

VBScript to C# question

P: n/a
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!
Nov 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #2

P: n/a
Natty,

Thank you so much!

-----Original Message-----
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
*** Sent via Developersdex http://www.developersdex.com ***Don't just participate in USENET...get rewarded for it!
.

Nov 17 '05 #3

P: n/a
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/de...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" <in**@solelsoftware.com>
| Sender: "Mark Fox" <in**@solelsoftware.com>
| Subject: VBScript to C# question
| Date: Wed, 27 Aug 2003 21:45:14 -0700
| Lines: 23
| Message-ID: <09****************************@phx.gbl>
| 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!
|

Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.