Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5974363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:55:57+00:00 2026-05-22T20:55:57+00:00

In a Visual Basic 6.0 program, I have a string sTemp that I want

  • 0

In a Visual Basic 6.0 program, I have a string sTemp that I want to ensure does not contain a quotation mark. I have the line:

If sTemp.Contains("""") Then

But when I type the period after sTemp, I don’t get anything from intellisense, and when I try to compile I get the following error:

Compile error:
Invalid qualifier
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:55:58+00:00Added an answer on May 22, 2026 at 8:55 pm

    VB6 strings are not objects, so there are no methods on the string variable that you can call.

    To test does the string contain quotes you need to use the InStr function i.e.

    if InStr(sTemp, """") > 0 then ' string contains at least one double quote
    

    Hope this helps

    UPDATE This has nothing to do with the original question

    William, I just thought of this, it is unrelated information that you may find useful.

    There are many ways to shoot yourself in the foot with VB6.
    Among the less obvious is the fact that

    Dim myCollection as new Collection
    

    will have side effects you could never imagine.

    Never DIM something AS New CSomething

    Dim your variable, then on a second line, assign it to a new object. Hope this helps.

    Dim myCollection as Collection
    Set myCollection = New Collection
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very basic Visual Basic Program that I created in Visual Studio
I have acquired a DLL that was created in Visual Basic from a third
I have a Visual Basic .Net 2.0 program. I'm moving the settings from an
I working working with Visual Basic 2010 Express. I have a DataGridView that is
OK, so I am trying to make a program using Visual Basic that will
I'm writing a program for my visual basic class that computes the prices of
I have written a program on Visual Basic. In the debug folder, there are
I am busy writing a program in Visual Basic .NET and I have a
Language Visual Basic 6. I want to know if there is an open source
I'm using Visual Basic 9 (VS2008) I want to create new Tabs as and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.