[Gambas-user] Issue 328 in gambas: Change the name of the control will lead to code error
gambas at ...2524...
gambas at ...2524...
Sun Sep 9 11:24:44 CEST 2012
Comment #2 on issue 328 by jmx... at ...2924...: Change the name of the control
will lead to code error
http://code.google.com/p/gambas/issues/detail?id=328
I tried the new version 3.3 (sebikul's Gambas Daily Builds PPA,
3.2.90-0+svn4039~precise1). When rename a control, just AutoCorrect the
code of the form which the control on, the code of other form can not be
automatically corrected.
e.g.:
A. two forms(e.g.:Form1,Form2). Form1 has a button(e.g.: Button1)
B. code in Form1:
Public Sub Button1_Click()
Me.Button1.Tag = "form1.button1"
End
C. code in Form2, reference to the Form1:
Public Sub test()
Form1.Button1.Tag = "form1.button1"
End
D. Now, change the name of the Button1 on Form1.(e.g.:Button1-1).
E.the code in Form1 will auto change:
Public Sub Button1-1_Click()
Me.Button1-1.Tag = "form1.button1"
End
F. But the code in Form2 remain as:
Public Sub test()
Form1.Button1.Tag = "form1.button1"
End
More information about the User
mailing list