Appendix B
Function Mapping Reference
The following table shows the Microsoft Visual Basic 6 set functions and statements with the equivalent Visual Basic .NET functions. This is the table of mappings that the Upgrade Wizard uses when upgrading functions and stantements to Visual Basic. NET.
Visual Basic 6 | Member Type | Visual Basic .NET |
Abs | Function | System.Math.Abs |
AppActivate | Statement | AppActivate |
Asc | Function | Asc |
AscB | Function | No mapping |
AscW | Function | AscW |
Atn | Function | System.Math.Atan |
Beep | Statement | Beep |
Calendar | Property | No mapping |
CallByName | Function | CallByName |
CBool | Function | CBool |
CByte | Function | CByte |
CCur | Function | CDec |
CDate | Function | CDate |
CDbl | Function | CDbl |
CDec | Function | CDec |
ChDir | Method | ChDir |
ChDrive | Method | ChDrive |
Choose | Function | Choose |
Chr | Function | Chr |
ChrB | Function | No mapping |
ChrW | Function | ChrW |
CInt | Function | CShort |
CLng | Function | CInt |
Close | Statement | FileClose |
Command | Function | Command |
Cos | Function | System.Math.Cos |
CreateObject | Function | CreateObject |
CSng | Function | CSng |
CurDir | Function | CurDir |
CVar | Function | CObj |
CVDate | Function | CDate |
CVErr | Function | No mapping |
Date | Property | Today |
Date$ | Property | DateString |
DateAdd | Function | DateAdd |
DateDiff | Function | DateDiff |
DatePart | Function | DatePart |
DateSerial | Function | DateSerial |
DateValue | Function | DateValue |
Day | Function | Day |
DDB | Function | DDB |
DeleteSetting | Statement | DeleteSetting |
Dir | Method | Dir |
DoEvents | Statement | System.Windows.Forms.Application.DoEvents |
Environ | Function | Environ |
EOF | Function | EOF |
Eqv | Operator | VB6.Eqv |
Err | Function | Err |
Error$ | Function | ErrorToString |
Exp | Function | System.Math.Exp |
FileAttr | Function | FileAttr |
FileCopy | Method | FileCopy |
FileDateTime | Function | FileDateTime |
FileLen | Function | FileLen |
Filter | Function | Filter |
Fix | Function | Fix |
Format | Function | Format |
FormatCurrency | Function | FormatCurrency |
FormatDate Time | Function | FormatDateTime |
FormatNumber | Function | FormatNumber |
FormatPercent | Function | FormatPercent |
FreeFile | Function | FreeFile |
FV | Function | FV |
Get | Statement | FileGet |
GetAllSettings | Function | GetAllSettings |
GetAttr | Function | GetAttr |
GetObject | Function | GetObject |
GetSetting | Function | GetSetting |
Hex | Function | Hex |
Hour | Function | Hour |
IIf | Function | IIf |
IMEStatus | Function | No mapping |
Imp | Operator | VB6.Imp |
Input # statement | Statement | Input |
Input function | Function | InputString |
InputBox | Function | InputBox |
InStr | Function | InStr |
InStrB | Function | No mapping |
InStrRev | Function | InStrRev |
Int | Function | Int |
IPmt | Function | IPmt |
IRR | Function | IRR |
IsArray | Function | IsArray |
IsDate | Function | IsDate |
IsEmpty | Function | IsNothing |
IsError | Function | IsError |
IsMissing | Function | IsNothing |
IsNothing | Function | IsNothing |
IsNull | Function | IsDbNull |
IsNumeric | Function | IsNumeric |
IsObject | Function | IsReference |
Join | Function | Join |
Kill | Method | Kill |
LBound | Function | LBound |
LCase | Function | LCase |
Left | Function | Left |
LeftB | Function | No mapping |
Len | Function | Len |
LenB | Function | No mapping |
LineInput | Statement | LineInput |
Loc | Function | Loc |
Lock | Statement | Lock |
LOF | Function | LOF |
Log | Function | System.Math.Log |
LSet | Statement | LSet (only for left-justifying strings within strings) |
LTrim | Function | LTrim |
Mid | Function | Mid |
Mid | Statement | Mid |
MidB | Function | No mapping |
Minute | Function | Minute |
MIRR | Function | MIRR |
MkDir | Function | MkDir |
Month | Function | Month |
MonthName | Function | MonthName |
MsgBox | Function | MsgBox |
Name | Statement | Rename |
Now | Function | Now |
NPer | Function | NPer |
NPV | Function | NPV |
Oct | Function | Oct |
Open | Statement | FileOpen |
Partition | Function | Partition |
Pmt | Function | Pmt |
PPmt | Function | PPmt |
| Statement | Print, PrintLine |
Put | Statement | FilePut |
PV | Function | PV |
QBColor | Function | QBColor |
Randomize | Function | Randomize |
Rate | Function | Rate |
Replace | Function | Replace |
Reset | Method | Reset |
RGB | Function | RGB |
Right | Function | Right |
RightB | Function | No mapping |
RmDir | Method | RmDir |
Rnd | Function | Rnd |
Round | Function | System.Math.Round |
RSet | Statement | RSet |
RTrim | Function | RTrim |
SaveSetting | Function | SaveSetting |
Second | Function | Second |
Seek | Function | Seek |
SendKeys | Statement | System.Windows.Forms.SendKeys.Send |
SetAttr | Method | SetAttr |
Sgn | Function | System.Math.Sign |
Shell | Function | Shell |
Sin | Function | System.Math.Sin |
SLN | Function | SLN |
Space | Function | Space |
Spc | Function | Spc |
Split | Function | Split |
Sqr | Function | System.Math.Sqrt |
Str | Function | Str |
StrComp | Function | StrComp |
StrConv | Function | StrConv |
String | Function | New String constructor |
StrReverse | Function | StrReverse |
Switch | Function | Switch |
SYD | Function | SYD |
Tab | Function | Tab |
Tan | Function | System.Math.Tan |
Time | Property | TimeOfDay |
Time$ | Property | TimeString |
Timer | Function | Timer |
TimeSerial | Function | TimeSerial |
TimeValue | Function | TimeValue |
Trim | Function | Trim |
TypeName | Function | TypeName |
UBound | Function | UBound |
UCase | Function | UCase |
Unlock | Statement | Unlock |
Val | Function | Val |
VarType | Function | VarType |
Weekday | Function | Weekday |
WeekdayName | Function | WeekdayName |
Width | Statement | FileWidth |
Write | Statement | Write |
Year | Function | Year |