The first letter is lower case and should depend on the type of the variable:
Letter | Type |
---|---|
a | Array |
b | Boolean |
c | Collection |
f | Float |
h | Object (Handle) |
i | Integer, Long, Short, Byte. |
n | An integer storing a number of objects. |
s | String |
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
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:
Letter | Type |
---|---|
btn | Button, use btnOK btnCancel for OK, Cancel |
chk | CheckBox |
cvw | ColumnView |
cmb | ComboBox |
dwg | DrawingArea |
dlg | FontChooser |
edt | GambasEditor |
frm | Frame |
grd | GridView |
spl | HSplit |
iv | IconView |
lbl | Label |
lst | ListBox |
lvw | ListView |
pan | Panel |
img | PictureBox |
opt | RadioButton |
svw | ScrollView |
spb | SpinBox |
tab | TabStrip |
tim | Timer |
txa | TextArea |
txt | TextBox |
txv | TextView |
tbt | ToolButton |
trv | TreeView |
spl | VSplit |
A project which uses this style very similar is gambas2-1.9.28/apps/src/gambas2 - the Gambas IDE