![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi Everyone, I am wanting to know if it is possible to build a custom object / class 'on the fly'. I am hoping to create a class that has elements for each field in a recordset - wihtout knowing the fields before retreiving the recordset. I would then use a collection of these objects to 'pool' the data. The reason behind this is that I am pulling data from multiple sources, and not all of them are known beforehand. At the moment I am using arrays to do the job of holding the data (in a collection), and a separate collection of arrays that holds the recordsets' definitions (name, type, definedsize). I would prefer to do this with 'objects' but I am guessing I can only do this if I know the definitions beforehand. Any thoughts are appreciated. Cheers The Frog |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Hi Tom, Not really. I was thinking more of working with stacks and ques. I am not aware of any way to achive this except with classes (for complex objects). I am thinking that it might be easier to build a simple object heirarchy, effectively simulating the recordset object - but without all the database specific functions. Just a data holder in effect. Its for a set of rather complex analyses where the recordset itself isnt suitable. I need to be able to manipulate each object individually and feed them into different parts of the analysis independantly. Cheers The Frog |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |