mIRC Home    About    Download    Register    News    Help

Print Thread
#12738 23/02/03 10:38 PM
Joined: Feb 2003
Posts: 79
A
Ancyker Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Feb 2003
Posts: 79
on *:dialog:addtheme:sclick:14: {
savetheme $did(addtheme,13).text $left($did(addtheme,7).seltext,2) $left($did(addtheme,8).seltext,2) $left($did(addtheme,9).seltext,2) $did(addtheme,10).text
}

"$did(addtheme,13).text" cannot contain a space, I need something to check for that, and them say they can't use a space if they have one


#12739 24/02/03 12:03 AM
Joined: Dec 2002
Posts: 77
B
Babel fish
Offline
Babel fish
B
Joined: Dec 2002
Posts: 77
Code:
  
if $chr(32) isin $did(addtheme,13).text {
 echo -a sorry no spaces!
}

#12740 24/02/03 03:40 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Or allow them to use spaces, but strip the spaces out when you go to use the value.

$remove($did(addtheme, 13), $chr(32))


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard