This method converts the passed in cursor to a collection in property oRows (Public)
Return Value
The number of rows placed into oRows
Parameters
tcCursor
This is the name of the cursor which will be placed into the property oRows
Remarks
This method is very useful in keeping all data access within the object. It removes the need of having
to exctract the XML from cResultXML and then parsing it for required data. The property oRows is a standard
collection which has the standard collection properties such as Count and can be accessed using the
standard For Each ... Next syntax. You can even take a row from this collection,
modify it, insert it into oData and then save it. When doing this though make sure you set the property
nUpdateMode to the correct value.
Note also that by specifying a resultmode of 31 in the Query method, the oRows is automatically populated
with the results
Example
o.CreateoRows("TRecords")
The above would create collection object in the property oRows and populate it with the data in the
cursor "TRecords".
See also:
Class rp_data