Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Returning Data

Posted on 2001-06-21
4
Medium Priority
?
177 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 200 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

782 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