Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18013
Number of posts: 55386

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Help!!! Example of something needed...Class Module Posted by deostroll on 15 Oct 2005 at 6:17 AM
I do not know how to make use of the class module feature in VB. I have a VB 6.0 at home. Can anyone direct me to some page showing examples of how to use it.

I need to understand how to connect the class module to my application. I have a hunch it is for creating objects(?).
Report
Re: Help!!! Example of something needed...Class Module Posted by BitByBit_Thor on 19 Oct 2005 at 12:46 PM
: I do not know how to make use of the class module feature in VB. I have a VB 6.0 at home. Can anyone direct me to some page showing examples of how to use it.
:
: I need to understand how to connect the class module to my application. I have a hunch it is for creating objects(?).
:

A class module is for creating classes. How to 'connect' them to your form... that's kind of a difficult questions.
Have you ever designed an application or seen a design for an application? These days it's usually Object Oriented Design. Most of the time there is a diagram there that displays the objects and their relation to eachother. Such an object in the design is a class module in VB.
That's as close as I can describe it.
But to clarify a bit, a Form is a class module with a user interface. Same goes for all the controls you put on your form. You can call the controls like: ControlName.Function(Paramaters). This can be extended to include classes so it would be: ClassName.Function(Parameters).
That being said, a class is also a bunch of related properties and functions grouped together under one name (the class).

Greets...
Richard

Report
Re: Help!!! Example of something needed...Class Module Posted by infidel on 19 Oct 2005 at 1:05 PM
: : I do not know how to make use of the class module feature in VB. I have a VB 6.0 at home. Can anyone direct me to some page showing examples of how to use it.
: :
: : I need to understand how to connect the class module to my application. I have a hunch it is for creating objects(?).
: :
:
: A class module is for creating classes.

Technically, I think the original post had it correct. A class module is "used" to create objects (instances).






infidel

$ select * from users where clue > 0
no rows returned


Report
Re: Help!!! Example of something needed...Class Module Posted by BitByBit_Thor on 20 Oct 2005 at 12:43 PM
: Technically, I think the original post had it correct. A class module is "used" to create objects (instances).
:

Isn't the class module used to define a class, from which you can create objects (instances)

Greets...
Richard

Report
Re: Help!!! Example of something needed...Class Module Posted by sbeckstead on 20 Oct 2005 at 12:57 PM
: : Technically, I think the original post had it correct. A class module is "used" to create objects (instances).
: :
:
: Isn't the class module used to define a class, from which you can create objects (instances)
:
: Greets...
: Richard
:
:
Both the class and the instance can be referred to as an object. You can not manipulate those objects until they are instantiated.
Report
Re: Help!!! Example of something needed...Class Module Posted by infidel on 21 Oct 2005 at 6:51 AM
: Both the class and the instance can be referred to as an object. You can not manipulate those objects until they are instantiated.

This may be so in some languages, but I don't believe the statically-compiled COM languages have classes that can be manipulated. Classes in these languages (VB.NET, C#, etc. too) can't be changed at runtime. And they're not instantiated in the typical sense, they're really just "types" of things. To manipulate classes at runtime you need a more dynamic language like Python, Ruby, Perl, etc.



infidel

$ select * from users where clue > 0
no rows returned


Report
Re: Help!!! Example of something needed...Class Module Posted by infidel on 21 Oct 2005 at 6:47 AM
: : Technically, I think the original post had it correct. A class module is "used" to create objects (instances).
: :
:
: Isn't the class module used to define a class, from which you can create objects (instances)

That's what I said


infidel

$ select * from users where clue > 0
no rows returned





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.