ASP2ASPX can convert VBScript Functions to VB.NET automatically. Please see following table that lists VBScript and VB.NET functions:
VBScript 5.6 Functions | VB.NET Functions or managed code |
Abs | Math.Abs |
Array | New Object() { } |
Asc, AscB, AscW | Asc |
Atn | Math.Atan |
CBool | CBool |
CByte | CByte |
CCur | CDec |
CDate | CDate |
CDbl | CDbl |
Chr | Chr |
CInt | CInt |
CLng | CLng |
Cos | Math.Cos |
CreateObject | CreateObject or New Instance in .NET |
Date | Today |
DateAdd | DateAdd |
DateDiff | DateDiff |
DatePart | DatePart |
DateSerial | DateSerial |
DateValue | DateValue |
Day | Day |
Eval | (Does not support) |
Exp | Math.Exp |
Filter | Filter |
Fix | Fix |
FormatCurrency | FormatCurrency |
FormatDateTime | FormatDateTime |
FormatNumber | FormatNumber |
GetLocale | Session.LCID |
GetObject | GetObject |
GetRef | (Does not support) |
Hex | Hex |
Hour | Hour |
InputBox | InputBox |
InStr, InstrB | InStr |
InStrRev | InStrRev |
Int | Int |
IsArray | IsArray |
IsDate | IsDate |
IsEmpty | IsEmpty |
IsNull | IsDBNull |
IsNumeric | IsNumeric |
IsObject | * |
Join | Join |
LBound | LBound |
LCase | LCase |
Left, LeftB | Left |
Len, LenB | Len |
LoadPicture | LoadPicture |
Log | Math.Log |
LTrim | LTrim |
Mid, MidB | Mid |
Minute | Minute |
Month | Month |
MonthName | MonthName |
MsgBox | MsgBox |
Now | Now |
Oct | Oct |
Replace | Replace |
RGB | RGB |
Right, RightB | Right |
Rnd | Rnd |
Round | Math.Round |
RTrim | RTrim |
ScriptEngine | * |
ScriptEngineBuildVersion | * |
ScriptEngineMajorVersion | * |
ScriptEngineMinorVersion | * |
Second | Second |
SetLocale | * |
Sgn | Math.Sign |
Sin | Math.Sin |
Space | Space |
Split | Split |
Sqr | Math.Sqrt |
StrComp | StrComp |
String | New String() |
StrReverse | StrReverse |
Tan | Math.Tan |
Time | TimeOfDay |
Timer | VB.Timer |
TimeSerial | TimeSerial |
TimeValue | TimeValue |
Trim | Trim |
TypeName | TypeName |
UBound | UBound |
UCase | UCase |
VarType | VarType |
Weekday | Weekday |
WeekdayName | WeekdayName |
Year | Year |