cyberbiker
Programmer
This is either very simple or crazy but here goes.
I am reading a text file and placing values in an array.
(one full record, sort of a working storage)
I then process the data in the array depending on the value of the second field (Subscript 1 in the array) in the text file record.
The third field (array sub 2) is a default value that varies on each record
If that is a record type is an enumerated list then I fill a combobox (style property set to "dropdown list" text property is read only when that style is selected) using the additem method.
Now the problem. How do I manage to get the combo box to select the value in the list that matches the default field?
I do not wish to change the style property to dropdown combo since I do not wish my users to be able to enter any value except what is on the list.
For various reasons I must use this text file and some form of drop down box but any solution that permits that is most welcome
Terry (cyberbiker)
I am reading a text file and placing values in an array.
(one full record, sort of a working storage)
I then process the data in the array depending on the value of the second field (Subscript 1 in the array) in the text file record.
The third field (array sub 2) is a default value that varies on each record
If that is a record type is an enumerated list then I fill a combobox (style property set to "dropdown list" text property is read only when that style is selected) using the additem method.
Now the problem. How do I manage to get the combo box to select the value in the list that matches the default field?
I do not wish to change the style property to dropdown combo since I do not wish my users to be able to enter any value except what is on the list.
For various reasons I must use this text file and some form of drop down box but any solution that permits that is most welcome
Terry (cyberbiker)