473,387 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
Apr 17 '07 #1
6 1516
iburyak
1,017 Expert 512MB
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
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
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
1,017 Expert 512MB
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
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
Killer42
8,435 Expert 8TB
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

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

Similar topics

20
by: | last post by:
If I need to check if a certain value does exist in a field, and return either "yes" or "not" which query would be the most effestive?
7
by: Tony Johnson | last post by:
Can you make a check box very big? It seems like when you drag it bigger the little check is still the same size. Thank you, *** Sent via Developersdex http://www.developersdex.com ***...
4
by: Geir Baardsen | last post by:
Hi! Is there any way to check if printer is active in access 2000? I have a report that is printing (local printer), and before I do anything more in code, I do want to check if printer is...
35
by: pinkfloydhomer | last post by:
How do I check if a string contains (can be converted to) an int? I want to do one thing if I am parsing and integer, and another if not. /David
12
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
3
by: Chandra | last post by:
How do I programmatically (javascript) check if link is valid in html?
3
by: jeyabarani | last post by:
Hi guys, I want to check whether the user has entered any special characters in a text box. If the user enters, i want to display an alert message stating that he cant enter a special character...
173
by: Marty James | last post by:
Howdy, I was reflecting recently on malloc. Obviously, for tiny allocations like 20 bytes to strcpy a filename or something, there's no point putting in a check on the return value of malloc....
55
by: lovecreatesbea... | last post by:
Do you check all error conditions for all library calls in you code? Is it necessary to check all errors? Is it convenient to check all errors (or how to make code clean and readable with mass of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.