As you stated, $hfind returns the item name, not the corresponding numeric.

Eg:
Code:
/hadd -m Name temp temp
/hadd -m Name test2 test2
/hadd -m Name text text

//echo -a $hget(Name,).item  -> returns 3
//echo -a $hfind(Name,text,0) -> returns 1
//echo -a $hget(Name,1) -> returns temp
//echo -a $hfind(Name,text,1) -> returns text

$hget(Name,text).N -> would return 3 (if this function existed)

Personally I don't see a real use for a function like that, so I'm not going to put it as a Feature suggestion.

Last edited by RusselB; 16/11/08 04:34 PM.