Patches item #539019, was opened at 2002-04-04 00:17
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=303152&aid=539019&group_id=3152

Category: other
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: David Walker (vt_dwalker)
Assigned to: Nobody/Anonymous (nobody)
Summary: aolserver 4.0 - findall/findmatch

Initial Comment:
set myset [ns_set create]

ns_set put $myset "my name is" "bob"
ns_set put $myset "My Name is" "joe"
ns_set put $myset "my name is" "sam"
ns_set put $myset "My Name is" "bill"

foreach id [ns_set findall $myset "my name is"] {
 ns_write "[ns_set key $myset $id]=[ns_set value $myset
$id]<br>"
}



ns_set findall/ifindall/findmatch/ifindmatch returns
the index of the fields in the specified set whose key
names match the specified key. Zero (0) is the index of
the first field. If no matching fields are found,
ns_set find returns an empty list.

findall/ifindall require an exact match.
findmatch/ifindmatch use the same matching rules as
"string match"





----------------------------------------------------------------------

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=303152&aid=539019&group_id=3152

Reply via email to