Page 1 of 1

How to Read all the keys from INI File(Configuration file)

Posted: Wed Sep 06, 2006 8:08 am
by rajeshjeet
I am evaluating IA and i have my configuration file which will be public to all in the CD.
my ini file contain all the information about component and features
This ini file will be dynamic

Question1:
I want to read the all the keys and their values under a section

Question 2:
Is it possible to add controls to dialogs in runtime.

Posted: Wed Sep 06, 2006 8:31 am
by jimo
1. Use "Get INI FIle Seetings"
Example: Get INI $SUPPORTDIR$\\updates.ini, [Update Packs for Versions] $VERSION$ Value into Variable UPDATE_AVAILABLE

2.No it is not possible to add controls at runtime, however it is possible to enable, disable, make visible, hide controls

How to Read all the keys from INI File(Configuration file)

Posted: Thu Sep 07, 2006 12:25 am
by rajeshjeet
Thanks for Reply Jimo

but wat i wanted to read all the keys from a section as i dont know how many key are present in a section and i will not be knowing the key names also.

Is there any way to define a variable of type array or list or hash

Posted: Thu Sep 07, 2006 6:28 am
by MichaelNesmith
You may want to use Read from Text File then, and accordingly parse the results of this function when reading your INI file.