amc
Posts: 22
|
Posted: 06/25/2013, 5:59 PM |
|
Hi,
I need to get the values selected in a multiple listbox. I tried
$Container -> listbox -> GetValue();
but I only get the first selected value. I expected to get an array with all the values. Am I doing anything wrong? Is the only solution to get the values reading the form POST variable?
Thanks
|
|
|
yusufakyol
Posts: 73
|
Posted: 06/25/2013, 7:46 PM |
|
Hi,
You may get values from a multiselect listbox like this:
$ListBox = CCGetFromPost( "MyListbox" , array() ) ;
if ( is_array ($ListBox ) && count ( $ListBox ) ) {
.....
} else {
....
}
Best regards...
_________________
Best Regards |
|
|
yusufakyol
Posts: 73
|
Posted: 06/25/2013, 8:02 PM |
|
Hi,
I found CodeChargeStudio's info about this subject:
http://docs.codecharge.com/studio50/html/
From the left menu, please select titles in these sequences:
Examples and Techniques / Programming / Customizing the Data Source / Retrieve Values From a Multi-Select ListBox
Best regards...
_________________
Best Regards |
|
|
amc
Posts: 22
|
Posted: 06/25/2013, 9:52 PM |
|
Thank you very much for your help....
|
|
|
|