Visual Basic Family Compared to ViviFire
ViviFire has many of the same features as Visual Basic and VB.NET.
This appendix tries to show what is different.
Equivalent features
| Feature | Shared | Different |
| Arithmetic operators |
+, -, *, /, \, Mod, ^ |
|
| Assignment operators |
&=, +=, -=, *=, /=, \= |
Does not have ^=.
<<= → SHL=, >>= → SHR= |
Call |
Almost the same |
|
| Comparison Operators |
Almost the same |
|
Const |
Almost the same |
|
Do…Loop |
Almost the same |
|
Exit |
Almost the same |
Does not have Exit Select. |
For |
Almost the same |
Next → End For |
If…Else |
Almost the same |
ElseIf → Else If |
| Logical and bitwise operators |
And, Or, Xor |
AndAlso → And Then, OrElse → Or Else |
ReDim |
Almost the same |
Does not have Preserve. |
Return |
Almost the same |
|
Select…Case |
Almost the same |
Is is not optional. |
Try…Catch…Finally |
Almost the same |
Does not have Catch…When |
While |
Almost the same |
Wend → End While |
Easy translations
The table that follows shows elements of VB that have a different name in ViviFire.
Data types
| In VB | In ViviFire | In VB | In ViviFire |
Boolean | Boolean | String | String |
SByte | Int8 | Byte | UInt8 |
Short | Int16 | UShort | UInt16 |
Integer | Int32 | UInteger | UInt32 |
Long | Int64 | ULong | UInt64 |
Date | DateTime | Decimal | Fixed128 |
Single | Real32 | Double | Real64 |
ViviFire also has Int128, UInt128, Fixed64, and Real128.
Features almost the same
Features not available
- Access levels:
Private, Protected, Public, and Friend
Custom Property
GoSub and GoTo label
- Labels and line numbers as targets of
GoSub and GoTo
Like operator
NotInheritable and NotOverridable, because these are the defaults
- Operator overloading
- “Partial” classes and structures
Variant data type