answersLogoWhite

0


Best Answer

Deciding between a standard module and a class module is not a decision based on performance, but one of design. The main difference between the two is in the way that they handle data. A standard module stores only one copy of the data. A class module encapsulates the data within each instance of the class. That is, for each instance of the class, the data exists separately.

The other main difference is the scope of variables and procedures within the module. In general, any variables and procedures declared as Public within a standard module are visible anywhere in the project or external programs if the standard module is in a component. Variables and procedures declared as Public within a class module can only be seen through a reference to an instance of the class module.

The lifetime of data and procedures stored within a module is affected by which type of module is used. The lifetime of the data and procedures in a class module is defined by the lifetime of the object. So data and procedures are available only if a reference to the object exists. Data and procedures declared within standard modules are available for the lifetime of the program.

Therefore, to answer your question, if you are writing a function that you want available throughout the lifetime of the program and visible to all code in the application, then place the function within a standard module.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: In vb6.0 difference between bas file and cls file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between IAS and BAS?

In Australia, Business Activity Statements (BAS) and Instalment Activity Statements (IAS) are forms lodged by businesses to the Australian Tax Office (ATO) to declare tax owing to the ATO. Simply, the difference between BAS and IAS is that IAS does not show payments owing to or by the ATO for general service taxes (GST) because the enterprise submitting the IAS is not registered for GST.


How much do 1940 BAS motorbikes value at?

The 1940 BAS motorbikes are valued between $100 and $150.


What is the formula for ionic compound formed between barium and sulfur?

barium sulfur. barium sulfide. BaS.


What is an example of a program file?

a .exe file. A popular example of a program file that you are familiar with is Explorer.exe which runs the Windows Explorer Interface that powers the Start Menu, Task Bar, Folder Window and more.


In french what is the difference between 'pendant' and 'pour' when used in the future 'il sera là-bas pendant deux mois' and ' il sera là-bas pour deux mois'?

The use of "pendant" in the sentence "il sera là-bas pendant deux mois" indicates the duration of time he will be there for, emphasizing the period of two months. On the other hand, "il sera là-bas pour deux mois" implies a specific purpose or reason for being there for two months.


What nicknames does Chani Bas go by?

Chani Bas goes by Chani Bas.


What nicknames does Bas Jussen go by?

Bas Jussen goes by Bas van Kunder.


How do you pronounce buaidh no bas?

buaidh no bas


Is it J'habite en Pays-Bas or J'habite au Pays-Bas?

Aux Pays-Bas


In french what is the difference between 'pendant' and 'pour' when used in the future 'il y sera la bas pendant deux mois' and ' il y sera la bas pour deux mois'?

In this context, "pendant" is used to indicate the duration of time for which something will happen, while "pour" is used to specify the purpose or intention behind the action. Therefore, "Il y sera là-bas pendant deux mois" means "He will be there for two months," referring to the time frame, whereas "Il y sera là-bas pour deux mois" means "He will be there for two months," indicating the purpose or duration of stay.


Bas and haut?

Bas = low Haut = high


What is the extension of qbasic program?

.bas file ==== <--QBASIC CODE end Now, go and search your computer c:\ directory for the file called: homepage.htm; and, left double click on it to run; your web browser software should automatically launch itself, and, so display the web page output. Right click within an empty space within the web browser page...and, choose View > Source...and, you will be able to see the HTML source codes which were used to originally write the web page with; though, the QBASIC code itself is not displayed but remains entirely hidden.