General discussion

Locked

Visual Basic 6.0 Questions

By galahad04 ·
1. Is a VB module the same as a Java class?

2. Is a variable that is dimensioned without using the "<variable> as <type>" syntax a variant?

3. Is a VB Event the same as a Java Action Listener?

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Visual Basic 6.0 Questions

by R. A. Caluste In reply to Visual Basic 6.0 Question ...

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.

Collapse -

Visual Basic 6.0 Questions

by galahad04 In reply to Visual Basic 6.0 Question ...

Poster rated this answer

Collapse -

Visual Basic 6.0 Questions

by Shanghai Sam In reply to Visual Basic 6.0 Question ...

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.

Collapse -

Visual Basic 6.0 Questions

by galahad04 In reply to Visual Basic 6.0 Question ...

Poster rated this answer

Collapse -

Visual Basic 6.0 Questions

by galahad04 In reply to Visual Basic 6.0 Question ...

This question was closed by the author

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums