[Gambas-user] WebComboBox Clear

Mayost Sharon sharon at 455.co.il
Sun Jan 21 08:31:51 CET 2018


hello

OS: Fedora 27 64BIT
Gambas: 3.10.0


I have WebForm1
I put on the WebForm1 3 controls of WebButton1 WebComboBox1 WebLabel1


When I press the WebButton1 it fills the combo box at "1" and "2"

When I select from the WebComboBox1 this should put the value within the WebLabel1 value
that I selected

It does work
But if I click again on WebComboBox1 it does not work

But if I cancel the line: "WebComboBox1.Clear" It does work

This is not good because it continues to add to the combo box

Thank you

' Gambas class file

Export

Public Sub WebButton1_Click()
  WebComboBox1.Clear
  WebComboBox1.Add("1")
  WebComboBox1.Add("2")
End

Public Sub WebComboBox1_Click()
  WebLabel1.Text = WebComboBox1.Text
End



More information about the User mailing list