How to clear the SCREEN-VALUE of a character LIST-ITEM-PAIRS combo-box

Keith G.

Member
I want to toss this out there in case I can save someone else the frustration I just went through.

OpenEdge 11.6, Windows 10:

I was struggling to clear the screen-value of a character type list-item-pairs combo-box.

Neither of these worked:
cbAccountNo:screen-value = "".
cbAccountNo:screen-value = ?.

I made sure there was an entry in the list-item-pairs with a blank row:
cbAccountNo:add-first ("", "").

I finally stumbled upon this solution:
chAccountNo:screen-value = " ". // note the space character

This, despite the fact that the blank row in the drop-down list was populated with *empty strings*.
 
Top