USING CLASSES in VB6

Reply

Join Date: May 2005
Posts: 29
Reputation: vhinehds is an unknown quantity at this point 
Solved Threads: 0
vhinehds's Avatar
vhinehds vhinehds is offline Offline
Light Poster

Re: USING CLASSES in VB6

 
0
  #11
Jun 12th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 121
Reputation: jwshepherd is an unknown quantity at this point 
Solved Threads: 5
jwshepherd's Avatar
jwshepherd jwshepherd is offline Offline
Junior Poster

Re: USING CLASSES in VB6

 
0
  #12
Jun 16th, 2005
check the code snippets to the left there isone in there
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 19
Reputation: Bharati Krishna is an unknown quantity at this point 
Solved Threads: 0
Bharati Krishna Bharati Krishna is offline Offline
Newbie Poster

Re: USING CLASSES in VB6

 
0
  #13
Jun 16th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: USING CLASSES in VB6

 
0
  #14
Jun 16th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 29
Reputation: vhinehds is an unknown quantity at this point 
Solved Threads: 0
vhinehds's Avatar
vhinehds vhinehds is offline Offline
Light Poster

Re: USING CLASSES in VB6

 
0
  #15
Jun 21st, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 1
Reputation: detnikolaids is an unknown quantity at this point 
Solved Threads: 0
detnikolaids detnikolaids is offline Offline
Newbie Poster

Re: USING CLASSES in VB6

 
0
  #16
Jul 8th, 2005
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?
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 19
Reputation: Bharati Krishna is an unknown quantity at this point 
Solved Threads: 0
Bharati Krishna Bharati Krishna is offline Offline
Newbie Poster

Re: USING CLASSES in VB6

 
0
  #17
Jul 30th, 2006
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC