mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2008
Posts: 127
J
Vogon poet
OP Offline
Vogon poet
J
Joined: May 2008
Posts: 127
http://pastebin.com/f3637ff1e

I want the script to search through all items in an INI file under a specific category and return the item & value which has the highest number value.

For example, looking at the link above, the script would search through the INI under [category], search through each item for a value which has the highest numeric. In this case, the script would return: pft=31

Last edited by Joe_Dean; 09/11/08 04:21 AM.
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
The code would be the same as what was given to you previously. The only difference will be two extra variables to keep track of the highest item and its value and then comparing the value with each iteration of the loop.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: May 2008
Posts: 127
J
Vogon poet
OP Offline
Vogon poet
J
Joined: May 2008
Posts: 127
Yeah, I got it. Thanks again :P


Link Copied to Clipboard