[Gambas-user] Behaviour of Control.Public=True

Dag Jarle Nerland Johansen - Gambas gambas at cd-bahia.com
Tue Sep 14 13:54:48 CEST 2021


Hi,
I generate forms, and set some controls public true, because I need the 
value in other forms. Some fields (Textbox) do as they should. I write 
it out like this, same for all fields:
The data used come as parameter.

/      Print #fs, "{   " & GSCT & "_" & dat!feld & " TextBox"//
//      h = dat!objh / 7//
//      Print #fs, "MoveScaled(11, " & Gpy & ", " & w & ", " & ma.FLD_H 
& ")"//
//      Print #fs, "Tag=" & ch3 & dat!objtyp & ch3//
//      Print #fs, "Enabled=" & ch3 & dat!enable & ch3//
//      Print #FS, "#Public = True"//
//
//      Print #fs, "}"/

and output is like this:

/{   GFLD_tbl TextBox//
//MoveScaled(11, 11.3, 21.4285714285714, 3)//
//Tag="TB"//
//Enabled="-1"//
//#Public = True//
//}/

it works fine until I call

/  If FMain.GTBL_tbl.Text = "" Then/

*Unknown symbol in FMain.*
I make the field public=false in FMain (IDE), then back to true, then it 
works. another field I use later makes no problem, although written the 
same way. (With  the same sub)
Does anyone have an idea why this only happens with one 
field/control/textbox?
Thanks in advance
Dag JNJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210914/4fbf8e9a/attachment.htm>


More information about the User mailing list