what are the Differences between variables defined as
public in a standard module (.bas) file and a Class file?

Answers were Sorted based on User's Feedback



what are the Differences between variables defined as public in a standard module (.bas) file and ..

Answer / pratap557

In Module , global variables are declared, whereas in class
file unless one creates the class instance , cannot get the
variable declared in the public section of that class

Is This Answer Correct ?    7 Yes 1 No

what are the Differences between variables defined as public in a standard module (.bas) file and ..

Answer / jojo

i bas All the variable are public by default u can access
the variable throughtout the project.
In class u need the instance of the class called object to
access it

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Visual Basic Interview Questions

What is the difference between a property a method and an event? Give an example of each.

18 Answers   Microsoft,


What are different types of locks in ADODB?

4 Answers  


What is OLEDB?

0 Answers  


How can you check Beginning and End of the file?

2 Answers  


What are the types of line styles available in Treeview Control?

0 Answers  






What are the different compatibility types when we create a COM component?

2 Answers  


___ Property is to compress a image in image control.

1 Answers  


What's the maximum size of a textbox?

5 Answers  


What is the use of Visual Basic Document file?

0 Answers  


What is the-use of property page Wizard in ActiveX Control?

0 Answers  


What are constructors and destructors?

1 Answers  


What is the use of command Object?What are the various types of variables?

0 Answers  


Categories