mIRC Home    About    Download    Register    News    Help

Print Thread
Carriage Return #169119 19/01/07 04:59 PM
Joined: Jan 2006
Posts: 9
C
cheatvdb Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jan 2006
Posts: 9
the carriage return = $cr or $chr(13)
but in my dialog edit field, it shows up as a block (so no carriage return) however, when I copy paste it, it is a carriage return.

So I know it's there, but can't you display a normal carriage return in the editfield of a dialog?

Some code:
Code:
  while (%totallines >= %i) {
    /did -a linkcatcher 27 $read("quotepost.txt", %i) $chr(13)
    /inc %i
  }


Dialog:
Code:
edit "", 27, 12 95 239 84, multi return autohs autovs hsbar vsbar


thanks in advance for helping me out

Re: Carriage Return [Re: cheatvdb] #169130 19/01/07 07:51 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
You will need to add each line separately.


Invision Support
#Invision on irc.irchighway.net
Re: Carriage Return [Re: Riamus2] #169149 19/01/07 10:19 PM
Joined: Jan 2006
Posts: 9
C
cheatvdb Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jan 2006
Posts: 9
Originally Posted By: Riamus2
You will need to add each line separately.


EDIT:
$CRLF does the job!

this can be closed

thx

Last edited by cheatvdb; 19/01/07 10:29 PM.
Re: Carriage Return [Re: cheatvdb] #169152 19/01/07 10:29 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
Code:
  while (%totallines >= %i) {
    var %cnt = 1
    var %quote = $read("quotepost.txt", %i)
    while (%cnt <= $numtok(%quote,13)) {
      did -a linkcatcher 27 $gettok(%quote,%cnt,13)
      inc %cnt
    }
    inc %i
  }


That might do what you need. It will add each line up to the $cr and then go do the next part and so on.


Invision Support
#Invision on irc.irchighway.net