Skip navigation
rabbit78
Currently Being Moderated

DropDownList....insert control

Dec 29, 2012 8:14 AM

hi!!!!

 

i have insert one control in DropDownList but  error!!!! thi is code:

 

private function selectItemsPlaylist2(evt:MouseEvent):void{

                                        var stat:SQLStatement = new SQLStatement();

                                        stat.sqlConnection = connection;

                                        if (DropDownList.selectedItem.combo=="") {

                                                  Alert.show("Selezionare la Playlist!", "Messaggio!");

                                        }else {

                                                  stat.text = "SELECT id, nome, base, testo, lista FROM playlist where lista = ?";

                                                  stat.parameters[0] = DropDownList.selectedItem.combo;

                                                  stat.execute( -1, new Responder(onSelectedPlaylist2));

                                        }

                              }

 

if select in DropDownList i'm not problem but if don't select DropDownList i have error!!!

 

help!!!!

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points