BP Forums
Outputting a string with quotation marks in it. - Printable Version

+- BP Forums (https://bpforums.info)
+-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55)
+--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56)
+---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8)
+----- Forum: Programming Help (https://bpforums.info/forumdisplay.php?fid=9)
+----- Thread: Outputting a string with quotation marks in it. (/showthread.php?tid=426)



Outputting a string with quotation marks in it. - openeXpressions - 11-21-2011

Hi all! I'd really like to know how to insert a string with double quotes. Example:
Code:
insert("And Dave said, "Look out!"")
VB interprets Look out! as not part of the string. How do I solve this issue? Thanks!


Re: Outputting a string with quotation marks in it. - openeXpressions - 11-21-2011

Sorry folks. Figured it out. Just use double quotes twice.
Code:
insert("And Dave said,""Look out!""")



Re: Outputting a string with quotation marks in it. - xolara - 11-22-2011

Well i read the first post and in my rush i was allmost about to post it

but good job anyways <!-- sBig Grin --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="Big Grin" title="Very Happy" /><!-- sBig Grin -->


Re: Outputting a string with quotation marks in it. - openeXpressions - 11-22-2011

Thanks for being there to help! I felt very stupid for not using Google first. <!-- sBig Grin --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="Big Grin" title="Very Happy" /><!-- sBig Grin -->


Re: Outputting a string with quotation marks in it. - brandonio21 - 11-22-2011

If you ever run into difficulty with this again, the following code will also work:
Code:
insert("And Dave said, " & Chr(34) & "Look out!" & Chr(34))



Re: Outputting a string with quotation marks in it. - openeXpressions - 11-22-2011

Thanks! have you gotten any ideas about the Autocomplete?


Re: Outputting a string with quotation marks in it. - xolara - 11-23-2011

Autocomplete is on the default textboxes and easy to use ^^


Re: Outputting a string with quotation marks in it. - brandonio21 - 11-24-2011

Nick Wrote:Thanks! have you gotten any ideas about the Autocomplete?

Unfortunately, I have not had any time to look into it. Sorry about that!

xolara Wrote:Autocomplete is on the default textboxes and easy to use ^^

He is referring to the autocomplete feature found in Pavel Torgashov's Fast Colored TextBox control.
(http://www.codeproject.com/KB/edit/FastColoredTextBox_.aspx?msg=4072439#xx4072439xx)


Re: Outputting a string with quotation marks in it. - openeXpressions - 11-25-2011

Would you have any ideas about that, xolara? I'm using it in open eXpressions, and it will probably be used in HTML-IDEx.


Re: Outputting a string with quotation marks in it. - openeXpressions - 11-29-2011

Any ideas anyone?


Re: Outputting a string with quotation marks in it. - xolara - 12-01-2011

Sorry didnt notice i will try and have a look at it


Re: Outputting a string with quotation marks in it. - openeXpressions - 12-01-2011

Thanks!


Re: Outputting a string with quotation marks in it. - xolara - 12-16-2011

Uh since my computer died on me i havnt been able to look into it Sorry :/ but i will if i get my new parts on monday!


Re: Outputting a string with quotation marks in it. - openeXpressions - 12-16-2011

Ok. Thanks! This is gonna be really helpful. I have included your name in the credits.


Re: Outputting a string with quotation marks in it. - xolara - 12-17-2011

Hey i am alittle confused atm and to well understand it all could you maybe explain what you need and i will look into it right now <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->


Re: Outputting a string with quotation marks in it. - openeXpressions - 12-20-2011

Thanks! I'm just trying to use the autocomplete feature included with the control.