Dynamically populate DropdownListbox
Posted on 2004-03-30
I have a column in a datawindow that has the DropdownListbox edit style. I'm populating the display and data values dynamically in code by using the Values property. However, I want to use NULL as the data value for one of the choices. I have the 'Empty String is NULL' checked. How would I go about doing this?
If I use a Display Value (example 2 below), it does not work. When I don't use a Display Value (example #1), it works fine. For example,
1) ls_values = "chaintype.Values='~t~~'~~'" -- Returns null
2) ls_values = "chaintype.Values='Store~t~~'~~'" -- Returns ''