RSS Forums RSS
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 17864 | Replies: 16
Reply
Join Date: May 2005
Posts: 29
Reputation: vhinehds is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
vhinehds's Avatar
vhinehds vhinehds is offline Offline
Light Poster

Solution Re: USING CLASSES in VB6

  #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  
Join Date: Jun 2005
Location: Texas
Posts: 120
Reputation: jwshepherd is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 5
jwshepherd's Avatar
jwshepherd jwshepherd is offline Offline
Junior Poster

Re: USING CLASSES in VB6

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

Re: USING CLASSES in VB6

  #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  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 108
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

Re: USING CLASSES in VB6

  #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  
Join Date: May 2005
Posts: 29
Reputation: vhinehds is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
vhinehds's Avatar
vhinehds vhinehds is offline Offline
Light Poster

Re: USING CLASSES in VB6

  #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  
Join Date: Jul 2005
Posts: 1
Reputation: detnikolaids is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
detnikolaids detnikolaids is offline Offline
Newbie Poster

Re: USING CLASSES in VB6

  #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  
Join Date: Aug 2004
Posts: 19
Reputation: Bharati Krishna is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
Bharati Krishna Bharati Krishna is offline Offline
Newbie Poster

Re: USING CLASSES in VB6

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:48 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC