Connecting Tech Pros Worldwide Forums | Help | Site Map

writing & in a string for VB 2005

chantymalo's Avatar
Newbie
 
Join Date: Feb 2007
Posts: 8
#1: Feb 28 '07
This is something that has me very confused.

I'm trying to write a string including the & symbol, but I cant do it!!!!

if I write something like:

Dim str as String
str "Pete&Jack"

it appears as PeteJ ack

same happens if I try to use Chr(38)

so how do I get the & in a string?????

chantymalo's Avatar
Newbie
 
Join Date: Feb 2007
Posts: 8
#2: Feb 28 '07

re: writing & in a string for VB 2005


I already found out, but another problem appears

I write:

str = "Pete&&Jack"

and it appears as Pete&Jack

how I make it stop underlining the next letter?
Reply