mIRC Homepage
Posted By: Frog Hmm..possible bug? Thought I'd ask here first. - 26/07/04 10:50 AM
Ok, this alias..

Code:
alias -l dsave {
  var %l 0
  while (%l < $did(Quotes,3).lines) {
    inc %l
    write -c $readini(FQuotes.ini,FQuotes,Dir)
    .timerFW. [ $+ [ %l ] ] 1 1 write $readini(FQuotes.ini,FQuotes,Dir) $did(Quotes,3,%l)
  }
}


..reads from the listbox, whose ID is 3, and writes it to the file like it's supposed to.

Now, the problem is..that alias works, completely, but if there's a $ in any of the lines of the dialog's listbox, /write tries to evaluate it..and I didn't see any switch for /write, or $did, to keep it from attempting to evaluate any possible identifiers.

Any ideas?
Three ways at least to solve this,

1, remove the /timer and simply use only the /write alias
2, if you want the timer, use $eval($did(),0)
3, use /filter

Yours,
  • alias -l dsave { savebuf -o Quotes 3 $readini(FQuotes.ini,FQuotes,Dir) }

© mIRC Discussion Forums