By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,983 Members | 1,717 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,983 IT Pros & Developers. It's quick & easy.

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

P: 48
Hello,

Please let me know..

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

Thanks,
San
Apr 17 '07 #1
Share this Question
Share on Google+
6 Replies


iburyak
Expert 100+
P: 1,017
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.... :)
Apr 17 '07 #2

P: 48
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 :)
Apr 17 '07 #3

P: 48
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 ?
Apr 17 '07 #4

iburyak
Expert 100+
P: 1,017
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.
Apr 17 '07 #5

P: 48
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 ..
Aug 3 '07 #6

Expert 5K+
P: 8,434
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.
Aug 3 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.