mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2008
Posts: 44
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2008
Posts: 44
Hi,
can't figure out how $hget(name/N, item, &binvar) would be particularly used ;. .seeing that a &binvar could already be set by
Code:
bset -t &b 1 $hget(table,item)



from what i tested it returns the number of bytes after assigning the data to the &binvar, something like the corresponding $fread() one.
Code:
bset -t &b 1 hello
hadd -m htest item1 abcd
hadd -m htest item2 wxyz
echo -a - $hget(htest,item1,&b) 
echo -a - $bvar(&b,1,$bvar(&b,0)).text


would be interested in any special usage associated with the identifier
Thanks

Last edited by Nightstorm; 05/06/09 12:21 PM.
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
This identifier is meant to be used to retrieve binary data from a hash table item, ie data added with /hadd -b.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Mar 2008
Posts: 44
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2008
Posts: 44
nice, thankies! ; )
-

Joined: Mar 2008
Posts: 44
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2008
Posts: 44
Just have a few more related questions, instead of making a new thread i thought i'd just ask here.

is $hget(name/N, item, &binvar) affected by the mirc line limit, or it doesn't matter ? (I suppose it isn't but would appreciate a confirmation.)

what about the other usual $hget(name/N, item) does the line limit apply to it ?

Both the above questions are of course assuming that i am storing the fetched data in a &binvar.

- - - - - -- - - - - - - - - - - - - - - - - - - - - -
could someone give me a line actually showing the usage of
$hget(name/N, item, &binvar) ? (without using it in /echo) since it is a bit diff & returns the number of bytes.

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
after some quick testing it seems that after using hadd -smb name item &b , i could still fetch the data the usual way $hget(name,item) & assign it to another &binvar the usual way.

..appreciate any help & comments.

Thankyou.
----------------------


Last edited by Nightstorm; 18/06/09 05:41 PM.

Link Copied to Clipboard