| VB | Gambas | Type of file |
|---|---|---|
| .vbp | .project (just .project, one per directory) | Project definition file |
| .bas | .module | Module |
| .cls | .class | Class file |
| .frm | .form | Form definition file |
| .frx | (whatever you want) | Binary resource files |
/ operator returns an integer if its operands are all integers. For example, PRINT 9 / 2 returns 4 and not 4.5 . To use floating point division, you must convert one of the operands to the Float datatype, e.g. you must use PRINT 9.0 / 2 or PRINT CFloat(9) / 2 . In VB, division using / is always a floating-point operation, with an implicit conversion to doubles prior to the division and if necessary, an implicit conversion back to integer afterward; VB has a separate integer division operator.
ByVal keyword, so be careful when you try to port a VB project.
"Filter 1 (*.foo);;Filter 2 (*.bar)" instead of "Filter 1 (*.foo)|Filter 2 (*.bar)".
STOP EVENT instruction.
Mouse.X and Mouse.Y for the mouse coordinates.
Mouse.Left to know if the left button is pressed.
Key.Code to get the code of a key.
Key.Shift to know if the SHIFT key is pressed.
Following is a list of pages that include VB-migration notes:
| DifferencesFromVB | Differences from VB While Gambas is not intended to be a clone of TrademarkAttributions Microsoft Visual Basic , it's still BASIC and there are many similarities ... |
| GambasEND | END Indicates the end of a procedure or a function. See GambasMethodsDeclaration Method declaration . #VbDiff Differences from VB In VB, the End command closes all ... |
| GambasSHELL | SHELL SHELL Command WAIT FOR ( READ WRITE READ WRITE ) AS Variable Executes a command via a system shell. An internal Process object is created to manage the command ... |