mIRC Home    About    Download    Register    News    Help

Print Thread
Me agen #181084 17/07/07 02:40 PM
Joined: Jul 2007
Posts: 15
4
4ndr3w Offline OP
Pikka bird
OP Offline
Pikka bird
4
Joined: Jul 2007
Posts: 15
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

Last edited by 4ndr3w; 17/07/07 02:57 PM.
Re: Me agen [Re: 4ndr3w] #181096 17/07/07 03:39 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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.

Re: Me agen [Re: SladeKraven] #181103 17/07/07 04:14 PM
Joined: Jul 2007
Posts: 15
4
4ndr3w Offline OP
Pikka bird
OP Offline
Pikka bird
4
Joined: Jul 2007
Posts: 15
works perfect thanks mate

Re: Me agen [Re: 4ndr3w] #181104 17/07/07 04:27 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome, glad it works and was what you wanted. smile