mIRC Home    About    Download    Register    News    Help

Print Thread
Another var/set -n switch suggestion #77959 04/04/04 08:37 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
I just noticed that /var and /set can't take "" as a value since it will be taken to mean an empty string. I'd like to see /set's -n switch (and /var's too if my other suggestion is implemented) treat it as ordinary text.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: Another var/set -n switch suggestion #77960 09/04/04 12:48 AM
Joined: Apr 2004
Posts: 3
N
nizon Offline
Self-satisified door
Offline
Self-satisified door
N
Joined: Apr 2004
Posts: 3
Use $chr(34) $+ $chr(34)
That will give you ""
smile

Re: Another var/set -n switch suggestion #77961 09/04/04 09:13 AM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Nope, the behaviour is at the parameter level, not the parser level, so no amount of tricks will help. Actually the variable probably could be filled using $regsub(), but it's ridiculous to have to go to that trouble just to set a variable.


Spelling mistakes, grammatical errors, and stupid comments are intentional.