Solved

Returning Data

Posted on 2001-06-21
4
167 Views
Last Modified: 2010-07-27
I am creating a data access class and I was wondering what is the best way to return data to my business objects?

1. Recordset
2. Recordset to Variant array
3. Recordset to xml
4. Recordset to collection
5. Recordset to dictionary object
6. Some other way

I know best can mean a lot of things to a lot of people and I know all projects are different but nonetheless, I am interested to hear what everyone has to say.

Thanx


0
Comment
Question by:Tmess
4 Comments
 
LVL 3

Accepted Solution

by:
Hornet241 earned 100 total points
ID: 6216285

XML would probably be the best, after your app is complete you can use the same object and add to the XML for a different app.
0
 
LVL 5

Expert Comment

by:gbaren
ID: 6216604
The world (ie: Microsoft) seems to be going the XML route. Seconded.
0
 
LVL 5

Expert Comment

by:ianouii
ID: 6216774
it depends on what type of data u're carrying. u can choose the method according to your requirements. here are some views from me. Hope it helps.

1) large data, XML isn't appropriate coz it's flat file accessing.

2) Hierarchical data, XML serves the best. ease of extending sub trees.

3) cross link or complicated data. collection or dictionary should serve the purpose.

good luck.
0
 
LVL 1

Expert Comment

by:morgan_peat
ID: 6217526
Yep - I agree with the XML thing. You're only passing around a String data type, which is v. fast to marshal across processes.
Very flexible, very fast for small amounts of data.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 10 start screen issues 9 55
Windows Script Host failed (Access is denied.) error 6 214
Add and format columns in vb6 7 62
Help me. 3 60
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question