Click to See Complete Forum and Search --> : Quotes
gideon
July 18th, 2001, 11:31 AM
I would like to put quotes into a string. Example is I would like lets say
strMine = "Text1.text"
Result would be if Text1.text was ... some text
then strMine would equal "some text" qutoes and all
Thanks so much I know this is very easy but thank you advance for the time and help!
Cimperiali
July 18th, 2001, 11:34 AM
double quotes:
text1.text = ""text""
or use single quote ' doubled:
text1.text = "''text''"
or :
Text1.text = """ & "text" & """
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
Cakkie
July 19th, 2001, 01:07 AM
Hate to bother you Cimp, but you made some mayor mistakes there with the examples:
text1.text = ""text""
' gives an error, should be
text1.text = """text"""
text1.text = "''text''"
' nice workaround ;)
text1.text = """ & "text" & """
' gives and error, should be
text1.text = """" & "text & """"
' actually, I think the first one is the simpelest
Tom Cannaerts
slisse@planetinternet.be
Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.