Need VB syntax to embed a quote

Posted on 2007-09-29
Last Modified: 2010-04-30
I have a function for VB6.0 which outputs comma delimited data, but I need to make it comma-quote delimited.  But when I change this:

", "


"", "" I get a compile error

"\", \"" this too!

Can someone tell me how to use a quote inside a string using VB6.0?

Question by:newbieweb
    LVL 142

    Accepted Solution

    """, """
    LVL 69

    Expert Comment

    by:Éric Moreau
    you can also

    x = chr$(34) + "," + chr$(34)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Introduction While answering a recent question ( in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
    Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now