mIRC Home    About    Download    Register    News    Help

Topic Options
#264803 - 13/01/19 06:09 AM $width() fontbold parameter
maroon Offline
Hoopy frood

Registered: 12/01/04
Posts: 1139
$width(text,font,size,B,C)

If someone uses a non-numeric B parameter, it's causing both B and C parameter to be treated as if zero. Possibly related to

34.Extended $width() to support $true/$false parameters.

Code:
//var %a G $+ $chr(22) | echo -a $width(%a,Consolas,16,B,0) same as $width(%a,Consolas,16,B,1)


Top
#264816 - 14/01/19 09:19 AM Re: $width() fontbold parameter [Re: maroon]
Khaled Offline


Planetary brain

Registered: 04/12/02
Posts: 4420
Loc: London, UK
Thanks for your bug report. Yes, this is related to $true/$false, which can be either $true/$false or 0/1. Since this identifier supports a variable number of parameters of different types (it has been extended several times, so needs to be backwards compatible), the scripter will need specify the correct values.

Top