VB2Java Visual Basic Compatibility Overview
 
Java is a very type driven language, whereas VB is not.  However, VB2Java takes care of that for you in automatically changing types as needed.  For example, Variant = String + Number, is handled with no problems by VB2Java!
 
VB2Java currently automatically translates the following data types, objects and methods.
 
VB2Java supports all of the standard Visual Basic Data Types.  It also supports user defined types.  This includes full support for Variant types.  VB2Java does not require Variants to be defined with the Dim statement, it will automatically create Variants from variables that were not defined.
 
Objects
 
Label
Menu
Frame
Check box
Combo box
Horizontal scroll bar
Timer
Shape
Image
Grid
DBGrid
Picture box
Text box
Command button
List box
Vertical scroll bar
Line
Data
 
Converting Methods
 
Chr, Chr$
Hex, Hex$, Oct, Oct$
Format, Format$, Str, Str$
Ccur, CDbl, Cint, CLng, CSng, CStr, Cvar, Fix, Int
Day, Month, Weekday, Year
Hour, Minute, Second
Asc
Val
 
Date/Time
 
Now
 
File I/O
 
Open
Close, Reset
Spc, Tab, Width #
FileCopy
EOF, FileLen, FreeFile, LOF, Seek
MkDir, RmDir
Kill
Get, Input, Input #, Input$, Line Input #
Print #, Put, Write #
 
Graphics
 
TextHeight, TextWidth
QBColor, RGB

Manipulating Objects

 
SetFocus
InputBox, InputBox$, MsgBox
Hide, Show
Move
Refresh
AddItem, RemoveItem

Math

 
Exp, Log, Sqr
Randomize, Rnd
Abs
Sgn
Fix, Int
Atn, Cos, Sin, Tan
 
Strings
 
Let
StrComp
LCase, LCase$, UCase, UCase$
Space, Space$, String, String$
Len
Format, Format$
InStr, Left, Left$, LTrim, LTrim$, Mid, Mid$, Right, Right$, RTrim, RTrim$, Trim, Trim$
Asc, Chr$