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

  • SEARCH
  • Home
  • 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 338747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:27:29+00:00 2026-05-12T10:27:29+00:00

i`m working on the legacy project in VB6 with huge object all with public

  • 0

i`m working on the legacy project in VB6 with huge object all with public variables.
I want to convert these public variables to private variable/property combinations.
Is there some tools with which i can do these conversion?(optimally all variables in class at once)

Thanks

  • 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-12T10:27:30+00:00Added an answer on May 12, 2026 at 10:27 am

    Don’t do the conversion, it’s not needed. The VB compiler does this automatically for all exposed classes (i.e. all classes that are exported in COM DLLs) and it’s not required for all other fields since these are used internally only and there’s no difference between a field and a property for the user.

    VB6 is the only language to do this right, in not allowing public fields at all, and implicitly converting them.

    To recap: there’s nothing wrong with public variables in VB6 since the usual disadvantages of public variables don’t apply to them. In particular, they don’t break encapsulation.

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

Sidebar

Related Questions

I'm working on a legacy project. The database is poorly designed. I want to
So I am working on a project I want to run on legacy Android
I'm using Visual Basic 6 for a legacy project and it's been working fine.
I am working on a legacy Java Enterprise server project, trying to set up
I'm working in a WCF project and we need to reuse some legacy components
I'm working with legacy Java code which returns java.lang.object. I'm passing it into a
I'm working with a legacy database. The naming conventions are all over the place
I am working on a legacy app in VB6 and am wondering what the
I'm working with a legacy vb6 product and I've come across a problem whereby
i am working on legacy project. In one of the jsp, it has cascaded

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.