?
Solved

how to display double quote symbol in printf...

Posted on 2003-02-24
5
Medium Priority
?
437 Views
Last Modified: 2012-05-05
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
0
Comment
Question by:tovisu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 

Expert Comment

by:jcmskip
ID: 8007836
You can use :

print #1, chr(34) ' 34 is the ascii code for the double quote
0
 
LVL 4

Expert Comment

by:Frog357
ID: 8007913
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.
0
 
LVL 2

Accepted Solution

by:
Mennovdh earned 75 total points
ID: 8007943
use double double quotes.

print #1, "DIALOG BEGIN ""PATTERN"""
0
 

Author Comment

by:tovisu
ID: 8007960
Do i need to give
Print #fh, "DIALOG_BEGIN "; """Patterns"; """ "
or any other options are there?
Regards,
Visuvanathan.B
0
 

Author Comment

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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month11 days, 9 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question