I am using a combo based on a single element array to select a path to be used in the app.
I store the selected value in an ini file entry and write all used paths to a table.
The array is created from the table when the app opens
I want the combo to show the previously used path stored in the ini file.
The 3 situations in the ini file are
1 blank
2 drive letter and root
3 a full path
The third choice is the one I want to show if that is in the ini - or the first element of the array if situations 1 or 2 exist.
I have tried various ways of getting the value into the combo in the init method - I guess there is a better/more correct way.
Any ideas anyone?
Thanks
PW
I store the selected value in an ini file entry and write all used paths to a table.
The array is created from the table when the app opens
I want the combo to show the previously used path stored in the ini file.
The 3 situations in the ini file are
1 blank
2 drive letter and root
3 a full path
The third choice is the one I want to show if that is in the ini - or the first element of the array if situations 1 or 2 exist.
I have tried various ways of getting the value into the combo in the init method - I guess there is a better/more correct way.
Any ideas anyone?
Thanks
PW