Link to home
Start Free TrialLog in
Avatar of whitefoxdennet

asked on

Name 'chr' is not declared.

I am writing an ASP.Net page in VB.  It loads a class from another .aspx.vb file.  In that class I am trying to put quotation marks around a string by using the code

strNewString = chr(34) & strMyString & chr(34)

When I do this, I get an error stating  Name 'chr' is not declared.

The chr function has been a part of BASIC, and VB since before I was born...  Why is it all of a sudden not working?
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial