How to check whether the VB code is written in VB3 or VB6 ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • santoshsri
    New Member
    • Jan 2007
    • 48

    How to check whether the VB code is written in VB3 or VB6 ?

    Hello,

    Please let me know..

    How to check whether the VB code is written in VB3 or VB6 ?

    Thanks,
    San
  • iburyak
    Recognized Expert Top Contributor
    • Nov 2006
    • 1016

    #2
    Usually it could be easily recognized by database connections.

    In VB3 times people used something like RDO or even earlier I don’t remember I think it was DAO. Connection mostly was through DSN.

    Also there are many variables that prefixed with $ meaning string and &, if I remember, it was an integer. I don’t think classes were introduced at VB3 times. People used mostly Modules. So, if you have classes then it is definitely VB5 or later. Lots of APIs is another sign of VB3 because of lock of capability people had to use APIs more than now.


    Show some code maybe we can help you.... :)

    Comment

    • santoshsri
      New Member
      • Jan 2007
      • 48

      #3
      Yes,

      I do have classes & modules in the project. It is using ADODB to connect to DB2 database.
      One more thing , project is not asking for any upgradations when I open the project into Visual Studio 6.0.

      Does it mean it should be written in Vb6 ?

      Thanks so much !
      San :)

      Comment

      • santoshsri
        New Member
        • Jan 2007
        • 48

        #4
        One more thing , the project uses a True DBgrid component that supports to either vb4 or vb5 as I see when I install this component.
        so can the code be in version 5 ?

        Comment

        • iburyak
          Recognized Expert Top Contributor
          • Nov 2006
          • 1016

          #5
          True DBGrid is a third party control and does not belong to standard VB can be used with any VB version.

          Also try this:
          Open any *.frm file in a Notepad.
          Read first line. It should be a version if I am not mistaken…:)

          Good Luck.

          Comment

          • santoshsri
            New Member
            • Jan 2007
            • 48

            #6
            Hi ,

            I opened the existing form in notepad , I am getting VERSION 5.00 as first line. so according to you it version is VB5 ??
            But why I am getting VERSION 5.00 in first line when I create a form in Visual studio 6 and save it and open in a notepad ?

            Please help ..

            Comment

            • Killer42
              Recognized Expert Expert
              • Oct 2006
              • 8429

              #7
              VB6 still creates forms with VERSION 5.00 at the top. I think that simply means that VB6 still uses the same file format as VB5 to store things.

              In other words, it's not really which version created the file, but more like the minimum version required to read it.

              Comment

              Working...