Results 1 to 4 of 4

Thread: what takes place of the old chr and asc functions from vb6 in vb.net?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770

    what takes place of the old chr and asc functions from vb6 in vb.net?

    what takes place of the old chr and asc functions from vb6 in vb.net?

  2. #2
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668

    Re: what takes place of the old chr and asc functions from vb6 in vb.net?

    chr and asc
    If wishes were fishes we'd all cast nets.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770

    Re: what takes place of the old chr and asc functions from vb6 in vb.net?

    Quote Originally Posted by Graff
    chr and asc

    Figured someone would say that. Yeah I know, thats because .NET continued support of those functions, but I also thought .NET had its own methods for string objects similar to the old chr and asc vb6 functions.

  4. #4
    Addicted Member
    Join Date
    Jan 2005
    Location
    Montréal
    Posts
    160

    Re: what takes place of the old chr and asc functions from vb6 in vb.net?

    for the 'asc' function, try
    VB Code:
    1. System.Convert.ToByte()

    for the 'chr' function, try
    VB Code:
    1. System.Convert.ToChar()

    Also take a look at System.Text.ASCIIEncoding for conversion between byte arrays and strings in ascii.

    Hope this helps
    There are no stupid questions, but a whole bunch of dumb sayings !

    Save time on database code, try DataLG !

Posting Permissions

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



Click Here to Expand Forum to Full Width