On Sep 23, 2006, at 5:22 PM, Dennis Birch wrote:
Is this possible?
I'd like to iterate over a recordset that could contain several
records, and feed them one record at a time to another method that
repackages them for me in an object my application can pass around
more easily. What's the syntax for doing that if it's possible?
Sure
something like
function Create(rs as RecordSet) as MyClass()
dim myRecordsAsCaslsses(-1) as MyClass
while rs.EOF <> true
myRecordsAsCaslsses.append (new MyClass(rs)) // creates a new
instance of MyClass from the current record in the record set
rs.moveNext
wend
return myRecordsAsCaslsses
creation of the MyClass object is left as an exercise for the reader :)
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>