mIRC Home    About    Download    Register    News    Help

Print Thread
#165166 23/11/06 12:18 AM
Joined: Sep 2006
Posts: 59
R
Rewtor Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Sep 2006
Posts: 59
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.

#165167 23/11/06 12:48 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
How did you use /bset? Remember that binary variable names aren't %var, but &var.


Invision Support
#Invision on irc.irchighway.net
#165168 23/11/06 03:37 AM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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.
#165169 23/11/06 09:58 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
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
#165170 23/11/06 04:15 PM
Joined: Sep 2006
Posts: 59
R
Rewtor Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Sep 2006
Posts: 59
OK, so how would i read all the data from a binvar?

#165171 23/11/06 04:32 PM
Joined: Oct 2003
Posts: 313
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 313
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

Link Copied to Clipboard