





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






Built in functions are supplied by the environmentVBScript is running in. Thus although thesefunctions are supplied for ASP or NT O/S scriptsnot all VBScript implementations may support allof the functions.
Function Categories - Math - String - Date/Time - Type Conversion - Misc.
Sin(), Cos(), Abs(), Exp()
Sgn(), Round(), Fix(), Eval()
There a lots of functions that start with 'c' they arefor converting the variants into a specific type:cInt(), cLng(), cStr(), etc.
Date/Time
Date() Returns the current system date. - DateAdd() Returns a date to which a specified timeinterval has been added. - DateDiff() Returns the number of intervals betweentwo dates. - DatePart() Returns the specified part of a given date. - DateSerial() Creates Dates form M, D, Y - Day,Hour, Minute, Second, … (Returns that part of thecurrent time) - Now() current date and time
Dim objXSet objX = CreateObject("Application.Class")
Function GoodFunction(X, Y) dim retret = 0if y <> 0 then ret = x / y end ifGoodFunction = retExit Function End Function Make a return valueInitialize it to something safeBounds check to avoid errorsReturn the value in the function name