Double quotes within a string?

Blitz3D Forums/Blitz3D Beginners Area/Double quotes within a string?

Yue(Posted 2012) [#1]
Hello, I need to put in a file but a text string with double quotes.

WriteLine (File%," "Hello" ") ; <<< No Working.



Yasha(Posted 2012) [#2]
WriteLine (File%," " + Chr(34) + "Hello" + Chr(34) + " ")


Or:

Global DQUOT$ = Chr(34)
WriteLine (File%," " + DQUOT + "Hello" + DQUOT + " ")



...best of all though: just use single quotes, or other quoting characters, if you can possibly get away with it in your output strings. If it's intended to be human-readable output, you can use single quotes most of the time (at least in English; I assume their usage is similar in Spanish?).


Yue(Posted 2012) [#3]
Ok thanks, always grateful for your help.

The aim of this is to build my installer to move this to a file vbe.

Dim FileName
	FileName = "Pawn"
		Set shortcut = CreateObject("WScript.Shell").CreateShortcut(CreateObject("WScript.Shell").SpecialFolders("Desktop") & + "\" + FileName + ".lnk")
			shortcut.Description = "My shortcut"
			shortcut.TargetPath = "D:\Zip\Yue.exe"
			shortcut.Arguments = "/Arguments:Shortcut"
			shortcut.WorkingDirectory = "D:\Zip\"
		        shortcut.IconLocation  = "D:\Setup\Res\Box.ico"
			shortcut.Save