|
You could use a UserIndex. Note I haven't used one for a web page scenario, but it works great for when you need to have a list of something all keyed unique. Aaron Bartell http://mowyourlawn.com -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Cunningham Sent: Friday, December 15, 2006 11:00 AM To: Midrange Systems Technical Discussion Subject: Dynamic sized multiple occurrence data structure Is there any trick available to create a multiple occurrence data structure and define the size at run time? I have done some searching but can't find anything that says it's possible. I did see how to create a dynamic array but my application is used as a stored procedure that returns a result set and so I can't use arrays. My procedure is called from a web app and could return between 1 and 1,000 records in the result set depending on the selection options used. I would prefer to not have to allocate 1,000 records in the data structure if I only need to return a much smaller number. Based on the parameters coming into the procedure I know if I will be returning <30 or <100 or <400 or <1,000 Mike Cunningham Pennsylvania College of Technology www.pct.edu mcunning@xxxxxxx -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.