Visual Basic 6
Visual Basic 6 (a.k.a. VB6) is an out-of-date programming language developed by Microsoft. Though it is very popular and well known.
Here is a reference chart which list VB6 functions and commands and their equivalents in Business Rules!.
BR! | VB6 |
---|---|
! | ' |
A$(3:4) | mid(A$,3,2) [1]
Left Right |
Ctrl+A | Ctrl+Break
(only works during development time, not after being compiled) |
Chr$ | Chr$ |
Date$ | Format$ [2] and Now |
Env$("[variable]") | Environ$("[variable]") |
Cnvrt$ | Format |
DimOnly | Option Explicit
(similar but different in scope) |
LTrm$ | LTrim$ |
LwrC$ | LCase$ |
Pos | InStr and InstrRev |
RTrm$ | RTrim$ |
SRep$ | Replace$ |
Trim$ | Trim$ |
UprC$ | UCase$ |
Max | (no equivalent) |
Print Bell; | Beep |
UDim(xArray) | CStr(xArray.length) |
Option Base 1 and Option Base 0 | "Option Base 1, will force VB to default the lower bound of arrays to 1. The Option Base statement can only have the number 0 or 1 after it, and 0 is the default – so you never need to code Option Base 0" [3] Note that the defaults in BR! and VB6 are opposite. |
Mat | To change the size of an array use Redim or ReDim Preserve (to also keep the existing values) [4] |
Else If | ElseIf (note the missing space) |
Status Stacks | Call Stack available from the Debug Toolbar |
Free | Kill |
if exists("C\What\File.txt")<>0 then | If Dir("C\What\File.txt")<>"" Then |