[Gambas-user] Instantiating forms and then referencing them...

Stephen Bungay sbungay at ...981...
Mon Nov 3 18:16:25 CET 2008


  Consider the following procedure from Form_Main

Private Sub InitializeControls()
   Dim hFormX As FormX
   Dim hFormY As FormY

   TabStrip1.Index = 0
   hFormX = New FormX(TabStrip1) As "X_Form"

   TabStrip1.Index = 1
   hFormY = New FormY(TabStrip1) As "Y_Form"


   TabStrip1.Index = 0
End

   If I then try to reference X_Form or Y_Form (to access a property or 
method) by using the name "X-Form" or "Y_Form" (from within Form_Main), 
I get an "Unknown identifier "X_Form".
   Question: How do I reference properties or methods inside the 
instantiated forms?




More information about the User mailing list