Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 13th, 2006, 01:17 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

yes.. but that's because it use to get fields from another class and a table on the database.. this class an other are build with an automatic tool (by myself) and i have other classes that get values from this classes only knowing this names.

the others auto clases has a propertyget function that take the name of the property and returns the value (with a select case) and a propertyset (that do the set to the property). It's my implementation of what you are trying to achieve...

HTH

Gonzalo
 
Old March 13th, 2006, 03:47 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OOP does not have anything to do with the possibility to iterate through an object methods and properties. For example, you can use the typeLib library to open a COM object and iterate through all its registered intterfaces, and get all the properties and properties of the properties and so on.

Gonzalo, what you implemented is just a disconnected RecordSet :)

Marco
 
Old March 13th, 2006, 04:02 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

sort of Marco ;) but i have some classes that implement an interface that has code in it (like inherit ;) ) and with this, all the child class has the same structure and for example the search function know how to construct the query (with the PK fields) and the base class know how to fill the class (with the fields name in the collection) and is all implemented without knowing the actual class i working on...

im doing something like OOP! ;)

HTH

Gonzalo





Similar Threads
Thread Thread Starter Forum Replies Last Post
Are vbscript classes fast? atwork8 Classic ASP Basics 0 May 3rd, 2008 11:13 AM
OOP Design Prob SiliconFuRy Java Basics 1 April 6th, 2006 03:01 PM
OOP design raj_sekhar C++ Programming 1 August 23rd, 2005 11:44 AM
OOP with JavaScript Moharo Javascript 3 September 29th, 2003 10:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.