Professional Web Applications Themes

VBScript to C# question - ASP.NET General

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!...

  1. #1

    Default VBScript to C# question

    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!
    Mark Guest

  2. #2

    Default Re: VBScript to C# question

    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!
    Natty Guest

  3. #3

    Default Re: VBScript to C# question

    Natty,

    Thank you so much!

     
    *** 
    Mark Guest

  4. #4

    Default RE: VBScript to C# question

    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" <com>
    | Sender: "Mark Fox" <com>
    | Subject: VBScript to C# question
    | Date: Wed, 27 Aug 2003 21:45:14 -0700
    | Lines: 23
    | Message-ID: <092501c36d1f$2bf64740$gbl>
    | MIME-Version: 1.0
    | Content-Type: text/plain;
    | cht="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!
    |

    Lewis Guest

Similar Threads

  1. asp.net & VBscript.asp
    By fatjedi in forum Dreamweaver AppDev
    Replies: 4
    Last Post: August 25th, 06:11 PM
  2. FRAMESET Question (ASP/VBScript)
    By LeeMc in forum Dreamweaver AppDev
    Replies: 3
    Last Post: August 10th, 02:57 AM
  3. VBScript Question
    By TXAGGIE in forum Dreamweaver AppDev
    Replies: 0
    Last Post: April 12th, 10:53 PM
  4. Very simple regular expression question (ASP/VBScript)
    By Ken Fine in forum Dreamweaver AppDev
    Replies: 2
    Last Post: March 3rd, 11:20 PM
  5. VBScript and ASP
    By Mini Me in forum ASP
    Replies: 1
    Last Post: August 3rd, 07:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139