Link to home
Start Free TrialLog in
Avatar of tovisu
tovisu

asked on

how to display double quote symbol in printf...

Hello all,
I'm writing a file as a output of my program. In the output I needs to get a sentence like this:
DIALOG BEGIN "PATTERN"
how to display "(double quote symbol) in the output file.
Thanks,
Visuvanathan.B
Avatar of jcmskip
jcmskip

You can use :

print #1, chr(34) ' 34 is the ascii code for the double quote
This is a good reference to have for programming.

Chr-0-127
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbenlr98/html/vamscansitable.asp

Chr-128-255
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbenlr98/html/vamscansitable2.asp


In case you ever need to know the ascii value for some other character.
ASKER CERTIFIED SOLUTION
Avatar of Mennovdh
Mennovdh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tovisu

ASKER

Do i need to give
Print #fh, "DIALOG_BEGIN "; """Patterns"; """ "
or any other options are there?
Regards,
Visuvanathan.B
Avatar of tovisu

ASKER

by trial and error i made above. Any way Thanks for all replied. Mennovdh and jcmskip's suggestions are also working. Thanks again