Visual Basic 6.0 Questions
1. Is a VB module the same as a Java class?
2. Is a variable that is dimensioned without using the " as " syntax a variant?
3. Is a VB Event the same as a Java Action Listener?
Web Development
1. Is a VB module the same as a Java class?
2. Is a variable that is dimensioned without using the " as " syntax a variant?
3. Is a VB Event the same as a Java Action Listener?
1) A class module i believe is the same as a java class but not a vb module
2) a variable with no type specified is a variant
3) i believe so.
by galahad04
by shanghai sam
I don't want to start an argument here about the differences between VB and Java...my background being predominantly VB...
(But)
1. You are asking about the differences between (what is arguably) an event driven language that does not usually contain or store a large amount of data itself. Actions are usually made against data that is stored in databases. ie Data retrieved, data changed, data returned. The 'VB module' would do this type of action. A 'Java class' on the other hand 'contains' all the components of an object and the methods that can be used with the object.
So whereas a VB module might perform actions against data, a Java class will perform actions with (its own object's) data.
You are going to get disagreements with answers to this sort of question, because you could set up a VB module to function in a relatively similar way to a Java class (and the other way around). Brief answer is yes, but the differences can be found in the inherent differences between thelanguages themselves and their 'intended' use(ie. relational or object oriented).
2. as in previous answer.
3. Difficult to answer, but mostly yes. If you took a Java action listener out of the Java world and dropped it into the VB world, you would get very close to a VB Event. I understand that a Java action listener itself allows greater functionality/flexibility, but also requires a little more programming to set up (because VB is more of a 'point, click, programming done' type language). But overall, relatively the same - yes.
good luck.
by galahad04
by galahad04
This discussion is closed to new replies.
Sort by Trending