troubleshooting Question

Name 'chr' is not declared.

Avatar of whitefoxdennet
whitefoxdennet asked on
ASP.NET
1 Comment1 Solution1402 ViewsLast Modified:
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?
ASKER CERTIFIED SOLUTION
Éric Moreau
Senior .Net Consultant
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros