mIRC Homepage
Posted By: cheatvdb Carriage Return - 19/01/07 04:59 PM
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
Posted By: Riamus2 Re: Carriage Return - 19/01/07 07:51 PM
You will need to add each line separately.
Posted By: cheatvdb Re: Carriage Return - 19/01/07 10:19 PM
Originally Posted By: Riamus2
You will need to add each line separately.


EDIT:
$CRLF does the job!

this can be closed

thx
Posted By: Riamus2 Re: Carriage Return - 19/01/07 10:29 PM
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.
© mIRC Discussion Forums