Solved

Returning Data

Posted on 2001-06-21
4
169 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

752 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