[Gambas-user] Where is the list of variables and prefix for them
Benoît Minisini
g4mba5 at gmail.com
Thu Dec 16 14:46:06 CET 2021
Le 16/12/2021 à 14:33, Gianluigi a écrit :
>
>
> Il giorno gio 16 dic 2021 alle ore 13:40 Benoît Minisini
> <g4mba5 at gmail.com <mailto:g4mba5 at gmail.com>> ha scritto:
>
>
> The three characters prefix for controls comes from VB. They are not
> very coherent, because what is important is mainly detecting at first
> sight that a symbol is a control reference, as these symbols are
> declared automatically.
>
> So you see the three initial letters of the symbols in lowercase, and
> you know that it is a global variable pointing at a control created in
> the form editor.
>
> Then, in second, I use the three letters to tell that the control is an
> text-related field (TextBox, TextArea, Label, TextLabel) editable or
> not
> ('lbl' <-> 'txt'), a button, a picture, a treeview... All that being
> mainly for basic controls.
>
> For compound or really complex controls, the three letters are not
> really important.
>
> Regards,
>
> --
> Benoît Minisini
>
>
> So I'm on the wrong way.
>
> I believed that you wanted an easy-to-store (practically automatic)
> method of standardization of the three prefix characters for controls.
>
> Then I will limit myself to report by copying what already present in
> the IDE
>
> Regards
> Gianluigi
>
I didn't say I don't want it. I just explained why the convention I use
in the IDE is sometimes not coherent.
The goal of all that is knowing what a symbol is at first sight as much
as possible, with a convention that can be easily memorized.
Regards,
--
Benoît Minisini
More information about the User
mailing list