mIRC Home    About    Download    Register    News    Help

Print Thread
#138973 09/01/06 02:13 AM
Joined: Jun 2005
Posts: 127
H
HAMM3R Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jun 2005
Posts: 127
Hey. I have a multiline editbox, and i want to save the info in an ini file, AS IS. I can use $didtok($dname,ID,32) which works normally, but if everything in the box is one word, for example: WEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE (yes it wasnt my idea, someone testing it wanted an alias to say that. smirk) ... if that is the case, it will be broken up with a space (WEEEEEEEE EEEEEE). Any idea as to how I can avoid it, and take the text in the editbox as is?


-- HAMM3R (aka: alhammer)
http://www.HAMM3R.net
#138974 09/01/06 02:16 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Maybe use an obscure character in place of the space character in $didtok, and then $remove that character before you continue with the rest of your processes.

-genius_at_work

#138975 09/01/06 02:33 AM
Joined: Jun 2005
Posts: 127
H
HAMM3R Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jun 2005
Posts: 127
$remove($didtok($dname,6,13),$cr) did the trick. Thanks man. Great idea.


-- HAMM3R (aka: alhammer)
http://www.HAMM3R.net

Link Copied to Clipboard