[Gambas-user] How to mention (in code) widgets which are in sub form , in the main fourm's code ?

Charlie charlie at ...2793...
Tue Feb 16 15:26:37 CET 2016


*You can't directly access the ListBox but you can pass a variable so in
FMain try this: -
*Public sTextForListBox As String[]
Public Sub Button1_Click()
  Form1.Show
  ListBox1.List = sTextForListBox
End
*In your Form1 enter this: -
*Public Sub Form_Open()
FMain.sTextForListBox = ["Hello World", "London", "New York", "The end of
the world"]
  End



--
View this message in context: http://gambas.8142.n7.nabble.com/How-to-mention-in-code-widgets-which-are-in-sub-form-in-the-main-fourm-s-code-tp55455p55457.html
Sent from the gambas-user mailing list archive at Nabble.com.



More information about the User mailing list