Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

How to get data from list box (multi select)

$
0
0

Hi All,

 

I have a List Box control which has selection from datawindow as below.

The List Box is set multiselect to true, my problem is, how to get the multiselect data and make it as parameter to generate report?

Understand, there is function: ls_stockclass = w_main.lb_stockclass.SelectedItem(), but this is only able to get the first selected data.

Kindly advise.

Thank you in advance.

 

------------

 

dw_stockclass.SetTransObject(SQLCA)

ll_rowmax = dw_stockclass.retrieve()

 

FOR ll_c = 1 to ll_rowmax

  ls_temp = string(dw_stockclass.object.code[ll_c])+' - '+dw_stockclass.object.descr[ll_c]

  lb_stockclass.InsertItem(ls_temp, 0)

NEXT

 

-------------

 

 

 

BR,

Yow


Viewing all articles
Browse latest Browse all 2881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>