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 636815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:33:21+00:00 2026-05-13T20:33:21+00:00

What does putting an exclamation point ( ! ) in front of an object

  • 0

What does putting an exclamation point (!) in front of an object reference variable do in Visual Basic 6.0?

For example, I see the following in code:

    !RelativePath.Value = mstrRelativePath

What does the ! mean?

  • 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-13T20:33:22+00:00Added an answer on May 13, 2026 at 8:33 pm

    It is almost certainly a statement inside a With block:

      With blah
        !RelativePath.Value = mstrRelativePath
      End With 
    

    which is syntax sugar for

      blah("RelativePath").Value = mstrRelativePath
    

    which is syntax sugar for

      blah.DefaultProperty("RelativePath").Value = mstrRelativePath
    

    where “DefaultProperty” is a property with dispid zero that’s indexed by a string. Like the Fields property of an ADO Recordset object.

    Somewhat inevitable with sugar is that it produces tooth decay. This is the reason you have to use the Set keyword in VB6 and VBA. Because without it the compiler doesn’t know whether you meant to copy the object reference or the object’s default property value. Eliminated in vb.net.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What exactly does putting extern C into C++ code do? For example: extern C
I'm putting a UISegmentedControl and UIBarButtonItem inside of a UIToolBar with the following code:
I have found following code in mysql documentation but wondering what does it mean
By putting functionality into a function, does that alone constitute an example of encapsulation
What does putting void; on a line do in C? The compiler is warning
what does putting () after a word do? sometimes it doesn't work
Quick question! Does putting a clear element INSIDE a floated div do anything? Like:
I'm hoping someone here can answer these definitively: Does putting a VHD file in
Does anybody know how I can theme the ctools modal window? I've tried putting
Does anyone know if there is a way to generate different code in the

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.