943,887 Members | Top Members by Rank

Ad:
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Jun 12th, 2005
0

Re: USING CLASSES in VB6

Quote originally posted by Comatose ...
Thanx, I have my moments...

hi guys!

well until now i cant still figure out how to make classes...
can you give me a basic example of creating a class and how can i use it in my coding? thanks a lot.
Reputation Points: 11
Solved Threads: 0
Light Poster
vhinehds is offline Offline
29 posts
since May 2005
Jun 16th, 2005
0

Re: USING CLASSES in VB6

check the code snippets to the left there isone in there
Reputation Points: 20
Solved Threads: 5
Junior Poster
jwshepherd is offline Offline
123 posts
since Jun 2005
Jun 16th, 2005
0

Re: USING CLASSES in VB6

Hi,

If you want to develop a complete Database Application using classes, I would advise you to refer this book Titled:" Develop an Accounting package using vb and SQL server 2000".

You can build a class to access data (through methods) from SQL server, update data, Managing Connection and any business logic you want build in client side.....

I read this book and developed full accounting Client/server package.

Regards
bhar
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Bharati Krishna is offline Offline
19 posts
since Aug 2004
Jun 16th, 2005
0

Re: USING CLASSES in VB6

Or, Just a simple google search on vb6 class module example turns up quite a bit of good stuff. If you need, I can build one as an example, but there are tons of them out there with a google search.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Jun 21st, 2005
0

Re: USING CLASSES in VB6

hi comatose sorry its only now i checked my port here...anyway, i would love you'll give me a simple example together with an explanations. because i just find it hard to build my own class, i have difficulty in understanding the procedure of making it.

thanks a lot.
Reputation Points: 11
Solved Threads: 0
Light Poster
vhinehds is offline Offline
29 posts
since May 2005
Jul 8th, 2005
0

Re: USING CLASSES in VB6

Hi guys! I'm a newbie here =)
question related to this thread. a module can also be created and re-used across different VB projects. So when is it appropriate to use a class rather than a module?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
detnikolaids is offline Offline
1 posts
since Jul 2005
Jul 30th, 2006
0

Re: USING CLASSES in VB6

Hi,

When we want to reuse a functionality, Classes can be used. A module for instance, could be used for a particular form only.

In an accounting application a Class can be used in the following instances:

a.When we want to access data from a database
b.Log in feature in the application
c.Adding data

In the title "Develop an Accounting Package using VB", i have dealt with this topic in detail....A class has been developed and when we save data into the database, retreive, edit, adding and displaying data. All the financial transactions use the Class - Tran Class.

If you notice, suppose we have a Cash Payment transaction, this transction uses the same class as the Cash Voucher transaction uses. I have dealt with how to design single form, and use the same form for different transactions like CV, CP etc, which is OOPs.

If we use a module, we will need to create separate modules .....

Each entity also can be created as a class.

Class based design forces us to think ahead in terms system design and implenting the requirements in a project and thus save on all resources like time, money etc.

Regards
Bhar
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Bharati Krishna is offline Offline
19 posts
since Aug 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Can some one help me with this code plz
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: how to pass a form to another form





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC