Iniread Into An Array

7 posts in this topic

powaking 0

Creating a toolbox type app where a user can customize it if they wish. The customization is in the form of a ini file. Trying to figure out how to read the Key's of the inifile as the name of the button and the value of each key to its appropriate execution of the button. I'm a noob but have progressed quite a bit. Keep having trouble with arrays.

I've tried doing an _arraycreate and _arrayadd inside the For...Next section but that didn't seem to help. I may be looking at this the wrong way. Just need some direction.

Share this post

Link to post

Share on other sites

powaking 0

You already created the array... with inireadsection.. Why are you trying to recreate it?

I need to have the buttons show the Key of the inifile and in the Case statements execute the Data of the key.

Maybe I should ask it this way. How do I assign variables from the inifile as such so that I can create multiple buttons using the Key's from an ini file and assign each buttons 'click' to its appropriate Data.

Thanks. Progress. Buttons now populate the Keys but when I click ona button I get

Error: Unable to execute the external program.

And it references to run($var[1][1])

Edit: I think its with my INI file and how the data field is configured. Some of the buttons work, ironically, the ones that are NOT explorer shortcuts. Will test more but I think I have it now. Thanks!!!!!!!!