i have a created a DropDownDataWindow in PowerBuilder, the list has zip codes from a database table... but it has many duplicates and more like that for example,
01720
01720
01720
01730
01730
01730
01730
... ans so on ,
my script is the following
datawindowchild child_data
dw_zipcontact_filter.insertrow(0)
if dw_zipcontact_filter.getchild( 'zipcontact', child_data ) = 1 then
child_data.settransobject( SQLCA )
child_data.retrieve( )
child_data.insertrow(1)
child_data.setitem( 1, 'id', 'ALL zip codes' )
child_data.setitem( 1, 'zip', 'ALL zip codes' )
child_data.selectrow( 0, false )
end if
i want to show my list like that,
01720
01730
.... and so on,
how can i do that?? i was wondering if anyone can help me, any help would be really appreciated..
Thank you in advance