[Gambas-user] END SUB causes weird error
Benoit Minisini
gambas at ...1...
Sat Nov 6 17:53:41 CET 2004
On Friday 05 November 2004 21:46, Rob wrote:
> I am porting yet another VB app in Gambas. This afternoon I
> copied a SUB into my Gambas class and forgot to remove the SUB
> from END SUB at the end of it. Rather than give me an error
> about that, the compiler then refused to recognize any form
> controls unless I qualified them with ME. first... kept going
> "Unknown identifier: Timer1" etc. (Sorry that I can't send the
> project or give an exact quote.... no way to get stuff off the
> machine I'm working on today.) I think this should probably be
> clarified if possible, especially if END never takes any
> arguments.
>
> Rob
>
Yes... By having END SUB instead of END at the end of functions, the compiler
thinks that the form code in one big function, even the hidden code generated
to build the form and declare the controls that is inserted after. So the
error...
I think I should allow the compiler to accept SUB and FUNCTION after a SUB.
But I will do it after the 1.0, sorry !
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list