[ rgdrajko @ 20.04.2008. 11:53 ] @
Na sajtu
http://www.w3schools.com/vbscript/vbscript_ref_functions.asp
imate sve VBSCRIPT funkcije sa detaljnim objasnjenjima i primerima.

Date/Time functions
Conversion functions
Format functions Math functions
Array functions String functions
Other functions

Date/Time Functions
Function Description
Code:
CDate    Converts a valid date and time expression to the variant of subtype Date
Date    Returns the current system date
DateAdd    Returns a date to which a specified time interval has been added
DateDiff    Returns the number of intervals between two dates
DatePart    Returns the specified part of a given date
DateSerial    Returns the date for a specified year, month, and day
DateValue    Returns a date
Day    Returns a number that represents the day of the month (between 1 and 31, inclusive)
FormatDateTime    Returns an expression formatted as a date or time
Hour    Returns a number that represents the hour of the day (between 0 and 23, inclusive)
IsDate    Returns a Boolean value that indicates if the evaluated expression can be converted to a date
Minute    Returns a number that represents the minute of the hour (between 0 and 59, inclusive)
Month    Returns a number that represents the month of the year (between 1 and 12, inclusive)
MonthName    Returns the name of a specified month
Now    Returns the current system date and time
Second    Returns a number that represents the second of the minute (between 0 and 59, inclusive)
Time    Returns the current system time
Timer    Returns the number of seconds since 12:00 AM
TimeSerial    Returns the time for a specific hour, minute, and second
TimeValue    Returns a time
Weekday    Returns a number that represents the day of the week (between 1 and 7, inclusive)
WeekdayName    Returns the weekday name of a specified day of the week
Year    Returns a number that represents the year


Conversion Functions Top
Function Description
Code:
Asc    Converts the first letter in a string to ANSI code
CBool    Converts an expression to a variant of subtype Boolean
CByte    Converts an expression to a variant of subtype Byte
CCur    Converts an expression to a variant of subtype Currency
CDate    Converts a valid date and time expression to the variant of subtype Date
CDbl    Converts an expression to a variant of subtype Double
Chr    Converts the specified ANSI code to a character
CInt    Converts an expression to a variant of subtype Integer
CLng    Converts an expression to a variant of subtype Long
CSng    Converts an expression to a variant of subtype Single
CStr    Converts an expression to a variant of subtype String
Hex    Returns the hexadecimal value of a specified number
Oct    Returns the octal value of a specified number


Format Functions Top
Function Description
Code:
FormatCurrency    Returns an expression formatted as a currency value
FormatDateTime    Returns an expression formatted as a date or time
FormatNumber    Returns an expression formatted as a number
FormatPercent    Returns an expression formatted as a percentage


Math Functions Top
Function Description
Code:
Abs    Returns the absolute value of a specified number
Atn    Returns the arctangent of a specified number
Cos    Returns the cosine of a specified number (angle)
Exp    Returns e raised to a power
Hex    Returns the hexadecimal value of a specified number
Int    Returns the integer part of a specified number
Fix    Returns the integer part of a specified number
Log    Returns the natural logarithm of a specified number
Oct    Returns the octal value of a specified number
Rnd    Returns a random number less than 1 but greater or equal to 0
Sgn    Returns an integer that indicates the sign of a specified number
Sin    Returns the sine of a specified number (angle)
Sqr    Returns the square root of a specified number
Tan    Returns the tangent of a specified number (angle)


Array Functions Top
Function Description
Code:
Array    Returns a variant containing an array
Filter    Returns a zero-based array that contains a subset of a string array based on a filter criteria
IsArray    Returns a Boolean value that indicates whether a specified variable is an array
Join    Returns a string that consists of a number of substrings in an array
LBound    Returns the smallest subscript for the indicated dimension of an array
Split    Returns a zero-based, one-dimensional array that contains a specified number of substrings
UBound    Returns the largest subscript for the indicated dimension of an array


String Functions Top
Function Description
Code:
InStr    Returns the position of the first occurrence of one string within another. The search begins at the first character of the string
InStrRev    Returns the position of the first occurrence of one string within another. The search begins at the last character of the string
LCase    Converts a specified string to lowercase
Left    Returns a specified number of characters from the left side of a string
Len    Returns the number of characters in a string
LTrim    Removes spaces on the left side of a string
RTrim    Removes spaces on the right side of a string
Trim    Removes spaces on both the left and the right side of a string
Mid    Returns a specified number of characters from a string
Replace    Replaces a specified part of a string with another string a specified number of times
Right    Returns a specified number of characters from the right side of a string
Space    Returns a string that consists of a specified number of spaces
StrComp    Compares two strings and returns a value that represents the result of the comparison
String    Returns a string that contains a repeating character of a specified length
StrReverse    Reverses a string
UCase    Converts a specified string to uppercase


Other Functions Top
Function Description
Code:
CreateObject    Creates an object of a specified type
Eval    Evaluates an expression and returns the result
GetLocale    Returns the current locale ID
GetObject    Returns a reference to an automation object from a file
GetRef    Allows you to connect a VBScript procedure to a DHTML event on your pages
InputBox    Displays a dialog box, where the user can write some input and/or click on a button, and returns the contents
IsEmpty    Returns a Boolean value that indicates whether a specified variable has been initialized or not
IsNull    Returns a Boolean value that indicates whether a specified expression contains no valid data (Null)
IsNumeric    Returns a Boolean value that indicates whether a specified expression can be evaluated as a number
IsObject    Returns a Boolean value that indicates whether the specified expression is an automation object
LoadPicture    Returns a picture object. Available only on 32-bit platforms
MsgBox    Displays a message box, waits for the user to click a button, and returns a value that indicates which button the user clicked
RGB    Returns a number that represents an RGB color value
Round    Rounds a number
ScriptEngine    Returns the scripting language in use
ScriptEngineBuildVersion    Returns the build version number of the scripting engine in use
ScriptEngineMajorVersion    Returns the major version number of the scripting engine in use
ScriptEngineMinorVersion    Returns the minor version number of the scripting engine in use
SetLocale    Sets the locale ID and returns the previous locale ID
TypeName    Returns the subtype of a specified variable
VarType    Returns a value that indicates the subtype of a specified variable


[Ovu poruku je menjao rgdrajko dana 20.04.2008. u 13:05 GMT+1]
[ Shadowed @ 20.04.2008. 12:01 ] @
Citat:
rgdrajko: Na sajtu file://localhost/c:/Novo/w3 shols/w3schools/vbscript_ref_functions.asp.htm


[ Aleksandar Ružičić @ 20.04.2008. 12:04 ] @
hahaha, rajko ovo ti je dosad najveca izvala :D

svaka cast :)

ROFL!
[ rgdrajko @ 20.04.2008. 12:07 ] @
Citat:


Drago mi je Aleksandre, to znaci da i ti umes da se nasmejes, obicno samo kritikujes.

Moja greska, skinuo sam ceo sajt i u zurbi nisam primetio, posle sam ispravio.
[ Shadowed @ 20.04.2008. 12:08 ] @
Ma naravno, desava se. Ali je ipak bilo smesno :)
[ Aleksandar Ružičić @ 20.04.2008. 12:09 ] @
pa i nisi trebao da menjas, onako je bilo zabavnije :) (prisetio si me na Marka Tasica - i on je kao profesionalac :D)

ok verujem da je greska (al opet...), mada nisi trebao da menjas, al aj...

p.s. a sta je na w3schools u vezi vbscript-a "novo"? :)


Citat:
Drago mi je Aleksandre, to znaci da i ti umes da se nasmejes, obicno samo kritikujes.

hmm, pa ne znam kako si zakljucio da ja ne umem da se nasmejem... ocigledno je da nisi citao teme koje si ti postavljao ;)
[ rgdrajko @ 20.04.2008. 12:14 ] @
Pa za mene i tebe nema nista novo, ali dolaze i nove generacije, treba im pomoci, zar ne?

Inace imas lep smisao za salu. Drzi se samo toga.
[ Aleksandar Ružičić @ 20.04.2008. 12:17 ] @
pa ok to za nove generacije, ali ja sam pitao sta za tebe ima tu novo posto ti se stranice sa tog sajta nalaze u folderu "Novo", pa me je zacudilo sta to za tebe ima novo na w3schools uzimajuci u obzir tvoje godine iskustva...

Citat:
Inace imas lep smisao za salu. Drzi se samo toga.

hvala, mada se trudim da zadovoljim onu tvrdnju "u svakoj sali ima vise od pola istine" ;)
[ Eurora3D Team @ 20.04.2008. 22:21 ] @
@Rajko da si stavio neki server na PC-u ljudi su mogli da skinu stranu direktno od tebe :)
Zezam se
Inace, stavio si dosta dobrih tema u zadnje vreme ...
[ rgdrajko @ 21.04.2008. 13:31 ] @


Citat:
Eurora3D Team: @Rajko da si stavio neki server na PC-u ljudi su mogli da skinu stranu direktno od tebe :)
Zezam se
Inace, stavio si dosta dobrih tema u zadnje vreme ...


Ok, bice jos boljih tema ovih dana.
Citat:
Aleksandar Ružičić: pa ok to za nove generacije, ali ja sam pitao sta za tebe ima tu novo posto ti se stranice sa tog sajta nalaze u folderu "Novo", pa me je zacudilo sta to za tebe ima novo na w3schools uzimajuci u obzir tvoje godine iskustva...


hvala, mada se trudim da zadovoljim onu tvrdnju "u svakoj sali ima vise od pola istine" ;)


Folder novo je novo za sve sto skidam, inace ja nisam kao ti toliko mnogo bio na internetu, ja sam samo radio programe i "mucio se", mada je mnogo bolje kada preko interneta bez muke steknes neko iskustvo za koje ti inace trebaju sati, dani ili meseci. Sto se tice sale kod tebe nije pola istine vec 100% istina.
[ Aleksandar Ružičić @ 21.04.2008. 16:39 ] @
heh pa i ja sam se mucio, jer kada sam se ucio programiranju bio sam na dial-upu koji moze maximum da izvuce 33kbps, ovo sam vec nekih 6 meseci na adslu skoro non-stop (od kad sam dosao u bg)...