Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
8Activity
0 of .
Results for:
No results containing your search query
P. 1
VBScript Functions

VBScript Functions

Ratings:

5.0

(1)
|Views: 1,052|Likes:
Published by Naveen kumar
These are helpful to write the functions in VBScript.
These are helpful to write the functions in VBScript.

More info:

Published by: Naveen kumar on Nov 14, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

04/11/2013

pdf

text

original

 
VB Script Functions
The conversion functions are as follows:
 
Function
 
Name Return Type Description
CBoolBooleanConverts an expression into aBoolean valueCByteByteConverts an expression into Bytenumber CDateDateConverts and expression into a date or time valueCDblDoubleConverts an expression into aflowing-point (decimal) number CIntIntegeConverts an expression into an integer (natural) number CCurCurrencyConverts an expression into acurrency (monetary) valueCLngLongConverts an expression into a longinteger (a large natural) number CSngSingleConverts an expression into aflowing-point (decimal) number CStrStringConverts an expression into a string
Language Element
 
Description
Abs FunctionReturns the absolute value of a number.Array FunctionReturns a
Variant
containing an array.Asc FunctionReturns the ANSI character codecorresponding to the first letter in astring.Atn FunctionReturns the arctangent of a number.CBool FunctionReturns an expression that has beenconverted to a
Variant
of subtype
Boolean
.CByte FunctionReturns an expression that has beenconverted to a
Variant
of subtype
Byte
.CCur FunctionReturns an expression that has beenconverted to a
Variant
of subtype
Currency
.CDate FunctionReturns an expression that has beenconverted to a
Variant
of subtype
 
Date
.CDbl FunctionReturns an expression that has beenconverted to a
Variant of subtype
Double.Chr FunctionReturns the character associated withthe specified ANSI character code.CInt FunctionReturns an expression that has beenconverted to a
Variant
of subtype
Integer
.CLng FunctionReturns an expression that has beenconverted to a
Variant
of subtype
Long
.Cos FunctionReturns the cosine of an angle.CreateObject FunctionCreates and returns a reference to anAutomation object.CSng FunctionReturns an expression that has beenconverted to a
Variant
of subtype
Single
.CStr FunctionReturns an expression that has beenconverted to a
Variant
of subtype
String
.Date FunctionReturns the current system date.DateAdd FunctionReturns a date to which a specifiedtime interval has been added.DateDiff FunctionReturns the number of intervals between two dates.DatePart FunctionReturns the specified part of a givendate.DateSerial FunctionReturns a
Variant
of subtype
Date
for a specified year, month, and day.DateValue FunctionReturns a
Variant
of subtype
Date
.Day FunctionReturns a whole number between 1 and31, inclusive, representing the day of the month.Eval FunctionEvaluates an expression and returns theresult.Exp FunctionReturns
e
(the base of naturallogarithms) raised to a power.Filter FunctionReturns a zero-based array containingsubset of a string array based on aspecified filter criteria.Fix FunctionReturns the integer portion of anumber.FormatCurrency FunctionReturns an expression formatted as a
 
currency value using the currencysymbol defined in the system control panel.FormatDateTime FunctionReturns an expression formatted as adate or time.FormatNumber FunctionReturns an expression formatted as anumber.FormatPercent FunctionReturns an expression formatted as a percentage (multiplied by 100) with atrailing % character.GetLocale FunctionReturns the current locale ID value.GetObject FunctionReturns a reference to an Automationobject from a file.GetRef FunctionReturns a reference to a procedure thatcan be bound to an event.Hex FunctionReturns a string representing thehexadecimal value of a number.Hour FunctionReturns a whole number between 0 and23, inclusive, representing the hour of the day.InputBox FunctionDisplays a prompt in a dialog box,waits for the user to input text or click a button, and returns the contents of thetext box.InStr FunctionReturns the position of the firstoccurrence of one string within another.InStrRev FunctionReturns the position of an occurrenceof one string within another, from theend of string.Int FunctionReturns the integer portion of anumber.IsArray FunctionReturns a
Boolean
value indicatingwhether a variable is an array.IsDate FunctionReturns a
Boolean
value indicatingwhether an expression can beconverted to a date.IsEmpty FunctionReturns a
Boolean
value indicatingwhether a variable has been initialized.IsNull FunctionReturns a
Boolean
value that indicateswhether an expression contains novalid data (
Null
).IsNumeric FunctionReturns a
Boolean
value indicatingwhether an expression can be evaluatedas a number.IsObject FunctionReturns a
Boolean
value indicating

Activity (8)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
premaims liked this
Priyanka99999 liked this
umashankar66 liked this
umashankar66 liked this
abinai liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->