mIRC Homepage
Posted By: 4ndr3w Me agen - 17/07/07 02:40 PM
its me agen :-D, i was just wonder how you would scan thru the ini and return if the lines dont begin with 1,2,3 etc. so something like

[test]
test=21235twegd
test2=testgfd

thanks for reading :P
Posted By: SladeKraven Re: Me agen - 17/07/07 03:39 PM
Code:
alias test {
  var %x = 1
  while (%x <= $ini(someini.ini,here,0)) {
    if ($left($readini(someini.ini,here,$ini(someini.ini,here,%x)),1) !isnum) echo -a $v1
    inc %x
  }
}


Something like that, that doesn't display anything if the value starts with a number. Is that what you meant? You didn't say item or value so I just guessed.
Posted By: 4ndr3w Re: Me agen - 17/07/07 04:14 PM
works perfect thanks mate
Posted By: SladeKraven Re: Me agen - 17/07/07 04:27 PM
You're welcome, glad it works and was what you wanted. smile
© mIRC Discussion Forums