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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to include " as a text in a code? 1

Status
Not open for further replies.

paul123456

Technical User
Apr 29, 2002
518
US
I was writing a letter as a report, i am pretty much done and everything looks great. except that one word needs to be in quataion marks and i know that a quote activates a command. i was thinking of inserting a picture with the word and qoutes but wanted to chk with you guys if it was possible. Thanks, PAUL

 
If you want to insert a double quote, then you must include 2. For Example:

"This is how you insert a ""double quote"""
 
The other way that I found best to do this is by doing the following in the string:

MyString = chr(34) & "Hello world" & chr(34)

The chr(<value>) returns the value of an ASCII character.

One way to find out the value of any keypress is do the following:

1. Create a text box.
2. In the properties box, click on the'Key Press event'
3. Do the code build process by clicking on the button with the &quot;...&quot;
4. Input the following code:

MsgBox &quot;Value is: &quot; & Str(KeyAscii)

When you enter a value into the box it will pop up a message box with the value of the key you pressed.

Hope this helps.
 
What if in the middle of a sentence writen in code u wanted to include a field that was bold? how would u do that without having to bold the entire field? Thanks, PAUL

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top