Anterior Próximo Editar Renomear Desfazer Procurar Administração
The naming conventions are not required by the compiler.
But programs which use the following naming conventions are easier to read by other programmers
who want to understand the program.
All private variable
names of a class
start with $
The first letter is lower case and should depend on the type of the variable:
PRIVATE $iLast AS Integer
PRIVATE $sLast AS String
PRIVATE $hEditor AS Object
PRIVATE $sOldVal AS String
PRIVATE $bFreeze AS Boolean
PUBLIC SUB Form_Resize()
DIM iWidth AS Integer
Form element names
When placing a new form element. Gambas
gives it a name like "Label1" "Label2" ...
Before you assign a method
to the new element,
you rename it to "btnStart" or "lstAddressSelect".
The first two or three lower case letters should
be given according to this definition:
A project which uses this style very similar is gambas2-X.Y.Z/apps/src/gambas2 - the Gambas