Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting a quotation mark from a print/text value

Status
Not open for further replies.

hoolz

IS-IT--Management
Dec 5, 2000
17
0
0
US
Hello,

I have a text box that I need to have quotation marks appear in once a button is pressed..for example:

Private Sub cmdButton_Click()
txtField.Text = "Adam strolled across the street and said "hello there!" with a pompous attitude."
End Sub

I have no idea how to print these quotation marks because of the errors they create. I know in html/javascript there are special codes for certain characters to be visible. Do these exist in Visual Basic?

Thanks!


hurry up and wait!

aim screenname: phentalmyst

:D
 
replace this:

"Adam strolled across the street and said "hello there!" with a pompous attitude."

with this:

"Adam strolled across the street and said " & Chr(34) & "hello there!" & Chr(34) & " with a pompous attitude."

Ruairi

Could your manufacturing facility benefit from real time process monitoring? Would you like your employees to be able to see up to the minute goal and actual production?
For innovative, low cost solutions check out my website.
 
Or use this:

MsgBox "Adam strolled across the street and said ""hello there!"" with a pompous attitude."
Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top