Posted By
|
Message
|
vetmora120
Registered 07/01/2010
Points 273
|
7th March, 2011 at 08:46:53 -
Hello!
I have an ini file filled with values and I need to be able to search through a specified group and then return if any of the items does not equal a specified value.
If none of the items within the group contain the value then it adds an item with the value it just searched for.
Tell if this is possible and if so, how?
Thanks in advance,
Vetmora
n/a
|
Sketchy Cornwall UK
Registered 06/11/2004
Points 1970
|
7th March, 2011 at 14:12:48 -
The ini++ object has a search function, and the documentation on how to use it is very clear:
http://www.lb-stuff.com/MMF2/Ini++/actions.html#performsearch
n/a
|
Don Luciano Heavy combat pancake
Registered 25/10/2006
Points 380
|
8th March, 2011 at 14:37:04 -
Yeah, ini++ has a lot of funtions, but if your making a flash game and cannot use ini++.
You could do this:
start loop ini (count list no of items)* this would require to make a list object and enter manually all the items that may be contained within the group
on loop ini
compare( get value at group, item at list loopindex name != specified value)
That would be a rough sketch how to check each value, adding is pretty simple then.
Take notice nonexistent items would return 0 i think.
Code me a sausage!
|
|
|