mIRC Home    About    Download    Register    News    Help

Topic Options
#165166 - 23/11/06 12:18 AM Binvars
Rewtor Offline
Babel fish

Registered: 14/09/06
Posts: 59
Loc: England
I looked through the help file regarding using binvars, as i know nothing about them whatsoever.
But when i was following the help file, i tried to /bset something, and it did not work when i tried to read data from it, so i used a wild card to see how many binvars there were, and it retuirned 0.

Any help would be great.

Top
#165167 - 23/11/06 12:48 AM Re: Binvars
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
How did you use /bset? Remember that binary variable names aren't %var, but &var.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#165168 - 23/11/06 03:37 AM Re: Binvars
starbucks_mafia Offline
Hoopy frood

Registered: 09/12/02
Posts: 2962
Loc: Norwich, UK
Remember binvars have only a local scope (like local variables) so they'll only be available within the alias/event that you used /bset in.
_________________________
Spelling mistakes, grammatical errors, and stupid comments are intentional.

Top
#165169 - 23/11/06 09:58 AM Re: Binvars
qwerty Offline
Hoopy frood

Registered: 07/01/03
Posts: 2523
More precisely, binvars have global scope but they are destroyed as soon as the top-level routine finishes. Eg if alias1 sets a binvar and calls alias2, the latter has access to that binvar.
_________________________
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Top
#165170 - 23/11/06 04:15 PM Re: Binvars
Rewtor Offline
Babel fish

Registered: 14/09/06
Posts: 59
Loc: England
OK, so how would i read all the data from a binvar?

Top
#165171 - 23/11/06 04:32 PM Re: Binvars
Sais Offline
Fjord artisan

Registered: 07/10/03
Posts: 313
Loc: UK
Something like:

Code:
//bset -t &b 1 This is text | echo -a $bvar(&b,1-).text | echo -a $bvar(&b,1-)


, you mean? smile
_________________________
Sais

Top