Skip to content
MSN

&binvars

A TG007 community discussion started by Nimbus03.

Discussion 4 posts
Page 1 of 1
Open
Topic #3865 · 4 published posts · 631 views

i'm having an iccle problem with &bvars, i'm getting info from webpages using sockets and reading them to &bvars, my problem is that sometimes the string is too long, it says in the help file that there is no limit to what they can hold, but where's the point if mIRC can't show you what it's holding, so i'm wondering if it's possible to divide the info and show it in parts, i know as i'm getting it from webpages there will be lots of html in the way but it's still too long even with that all removed, so i'm not quite sure what to do, if it can't be divided maybe there's another way, hope someone can help

"the important thing was, that i had an onion on my belt, which was the style at the time"

you can see what mIRC is holding.

 

 /help Binary variables 

 

has a whole documenation of setting/writing/reading binaries.

Binvars are one of the most complex things to learn in mIRC. The limit is 8192 bytes (8KB).

 

$bvar returns M ascii values starting from the Nth byte

 

$bvar(&v,0) returns the length of the binary variable

$bvar(&v,1) returns ascii value at positon N

$bvar(&v,5,3) returns ascii values from 5 to 8

$bvar(&v,5,3).text returns plain text from 5 to 8 up to the first zero character

 

$bfind searches a &binvar for a matching value, starting from position N. M can be a character value, ie. 0 to 255, or text. The search is case-insensitive.

 

$bfind(&test, 1, mirc) finds "mirc" starting from pos 1

$bfind(&test, 5, 32) finds char 32 (a space) from pos 5

$bfind(&test, 1, 87 65 86) finds WAV from pos 1

 

The .text property can also be used with $bfind to force a text search if the search text is a number.

Edited Jun 21, 2005 11:29 AM by Cleric xtx

 

i've read the help file, i've read all about that, it all works ok, if the read is small enough, i just need to know how to break larger strings of text into smaller pieces so mirc can echo them

"the important thing was, that i had an onion on my belt, which was the style at the time"