replacements for chr() and asc()

  • Thread starter Thread starter John A Grandy
  • Start date Start date
J

John A Grandy

in vb6 it was very common to use the functions chr() and asc() to perform
various kinds of string manipulation ...

these are still available in .net ...

but i would guess that it would be better to switch to "the .net way of
doing things" ...

any ideas anyone?
 
John,
I would recommend using ChrW & AscW as they are the Unicode versions & can
be used with constants!

BTW: Chr, ChrW, Asc, AscW are used for Char manipulation, not string
manipulation per se.

The System.Convert class & the System.Text.Encoding class have similiar
functionality to AscW & ChrW and Asc & Chr however they are "more work" to
use.

Hope this helps
Jay
 
Back
Top