-
List all .INI groups
Hi,
Is there a way that I can get a RTF box to list all of the groups found in a .INI file (with a line for each)?
I've tried playing round with the load text and search functions, but all I seem to be able to do is load the whole thing, strings and all!
I hope I've explained that enough - my head's pretty fuzzy now.
Thanks a lot
-
Re: List all .INI groups
I'm not sure if INI is intended for that functionality - the object knows that the file has groups, but can't tell what they are unless they're referred to by name. Can you explain what you're trying to do in the bigger picture, and perhaps someone can suggest an alternative approach? (I think that the Named Variable Object has a "count keys" action available, for example.)
Actually, to add to that - I suppose you could load the file as text into the String Parser 2, then extract anything between [ and ] characters.
-
Re: List all .INI groups
DavidN - that's a good idea, I'll try that.
What I'm trying to do is a create a text box which you type into, while a list box below fills with words (groups from a .INI) which begin with the letters you've typed so far - if you see what I mean. Similar to what happens when you type into a windows explorer bar. There is an object which already does this mostly, the 'Combo Box'. This would be great, but you can't stop it from having the windows 3D look (it's about the only object you can't I think - with 'Active System Box' for example you can disable all 3D shading and make it flat).
Does that make any sense at all? I'm sorry I haven't explained it better. I realise I'm probably trying to do something I can't...
Thanks
-
Re: List all .INI groups
you could load the ini with string parser and use parsing to work it out...
but thats a lot of working around.