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