We have found your RowSet library to be very useful for some of the
programming we're doing, especially its ability to create a rowset
directly from multiple arrays.

Wow, someone is actually using it!


We found, however, that we needed an additional method to search a
rowset's given column for a specific value. Because of this need, we
wrote the method below:

method "Find"($ioRowSet; $inColumn; $inValue)

[snip]

Could the RowSet library itself provide similar search functionality (at
least for simple data types)? I'm asking here on the mailing list to see
if our fellow A4Ders have any comments or recommendations in this area.

Good suggestion, please go to http://www.aparajitaworld.com/mantis and enter it as a feature request.



On another note, it would also be really nice to be able to access a
column's value for the current row without having to call the
RowSet.GetData method all the time.
   For example:

   writebr("Name: " + $rsCustomers{"Name"})       // $rsCustomers is a
rowset

You don't have to, the alternative is right in the RowSet documentation. The easiest (and preferred) way to access row data is to get the row first with GetRow() and then directly reference the columns from that. Unfortunately my documentation was wrong. The example on page 340 should be:


<%
   while(RowSet.Next($rs))
      $row := RowSet.GetRow($rs)
%>
<tr>
<td><%=$row{"Name"}%></td>
<td><%=$row{"Phone"}%></td>
<td><%=$row{"Email"}%></td>
</tr>
<% end while %>


Regards,

   Aparajita
   Victory-Heart Productions
   [EMAIL PROTECTED]
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com




Reply via email to