mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2006
Posts: 1
D
Mostly harmless
OP Offline
Mostly harmless
D
Joined: Dec 2006
Posts: 1
Hi!

There is a bug in $left and $right commands... it removes all the spaces even if I need them.

Thank you

Joined: Oct 2006
Posts: 166
B
Vogon poet
Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
at least post the buggy codes you tried.


Kind Regards, blink
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
All mIRC commands remove multiple spaces, as well as leading and trailing spaces. If that is the problem you are experiencing, it is normal.

-genius_at_work

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
are you sure there really removed?

Maybe your just using /ECHO whcih does remove multiple spaces when it outputs, but $left or $right wont

//var -s %a = $left($replace(..........x..........,.,$chr(32)),15) | echo -a ' %a ' size is $len(%a)

' x ' size is 15

see all the spaces in the VAR -s are shown!


Link Copied to Clipboard