System Functions.
Format
Returns a string containing an expression formatted according to instructions contained in a format expression.
C
expr
Specifies a valid expression.
any
picture
Specifies the format expression, if omitted for Date and DateTime the one set with Utilities.ServerSetUnspecifiedPictureSettings is used.
C
FormatWRS
Returns a string containing an expression formatted according to instructions contained in a format expression and Regional Setting.
C
expression
Specifies a valid expression.
N
picture
Specifies the format expression.
C
iif
Returns one of two values depending on the value of a logical expression.
C
expr
Expression you want to evaluate.
L
truepart
Value or expression returned if expression is True.
any
falsepart
Value or expression returned if expression is False.
any
Empty
Determines whether an expression evaluates to empty.
L
expr
any
IsNull
Determines whether an expression evaluates to a null value.
L
expr
any
Strtran
Searches a character expression or memo field for occurrences of a second character expression or memo field, and then replaces each occurrence with a third character expression or memo field.
C
src
String expression containing substring to replace.
C
find
Substring being searched for.
C
repl
Replacement substring.
C
Substr
Returns a character string from the given character expression or memo field.
C
str
String expression from which characters are returned.
C
pos
Character position in string at which the part to be taken begins.
N
cnt
Number of characters to return.
N
Left
Returns the specified number of leftmost characters of a character string.
C
str
String expression from which the leftmost characters are returned.
C
len
Numeric expression indicating how many characters to return.
N
Right
Returns the specified number of rightmost characters of a character string.
C
str
String expression from which the rightmost characters are returned.
C
len
Numeric expression indicating how many characters to return.
N
FormatMsg
Returns a string containing a translated message formatted positioning every parameter in its placeholder.
C
message
Specifies message with placeholders for every parameter (es: %1)
C
...
Expressions with message parameters.
any
Asc
Returns the ASCII code of the first character of a string.
C
str
C
At
Returns the numeric position of the first occurrence of a character string within another character string. Returns 0 if nothing found.
C
srcExpr
String expression to look for.
C
exprSrcd
String expression being scanned.
C
occ
Occurrence from which the srcExpr is searched for in exprSrcd.
C
RAt
Returns the numeric position of the last occurrence of a character string within another character string. Returns 0 if nothing found.
C
srcExpr
String expression to look for.
C
exprSrcd
String expression being scanned.
C
occ
Occurrence from which the srcExpr is searched for in exprSrcd.
C
Chr
Returns a string whose first character corresponds to the ASCII code passed.
N
ascii_code
Only for the first 128 characters.
C
Val
Returns a numeric value from a character expression composed of numbers.
N
str
C
Upper
Converts the specified character expression to uppercase.
C
str
C
Lower
Converts the specified character expression to lowercase.
C
str
C
Trim
Returns the specified character expression without trailing blanks.
C
str
C
RTrim
Returns the specified character expression without trailing blanks.
C
str
C
LTrim
Returns the specified character expression without leading blanks.
C
str
C
LRTrim
Returns the specified character expression without trailing blanks.
C
str
C
Replicate
Returns a character string that contains a specified character expression repeated a specified number of times.
C
str
Character expression to be repeated.
C
times
Number of times the expression is to be repeated.
N
Space
Returns a string composed of a specified number of spaces.
C
times
Number of spaces to be repeated.
N
Len
Returns the number of characters of a character expression.
N
str
C
Str
Returns a string representation of a number.
C
num
Number to convert into string.
N
len
Number of characters into which the number is converted.
N
dec
Maximum allowed decimal digits.
N
Mod
Used to divide two numbers and return only the remainder.
N
dividend
Specifies the dividend.
N
divisor
Specifies the divisor.
N
Min
Returns the expression with the minimum value.
C
firstexpr
First expression to compare.
any
secondexpr
Second expression to compare.
any
Max
Returns the expression with the maximum value.
C
firstexpr
First expression to compare.
any
secondexpr
Second expression to compare.
any
Round
Rounds a number to the specified decimal digits.
N
expr
Numeric expression being rounded.
N
numDec
Number indicating how many places to the right of the decimal are included in the rounding.
N
Trunc
Truncs a number to the specified decimal digits.
N
expr
Numeric expression being truncated.
N
numDec
Number indicating how many places to the right of the decimal are included in the truncated number.
N
Int
Truncates decimal digits to preceding integer. Example:Int(6.2)=6, Int(-6.2)=-7.
N
num
N
IntL
Truncates decimal digits lexicographically. Example:Int(6.2)=6, Int(-6.2)=-6.
N
num
N
CharToBool
Converts a character expression into a logic one.
L
string
C
BoolToChar
Converts a logic expression into a character one.
C
boolean
L
DateToChar
Converts a date expression into a character one with pattern YYYYMMDD.
C
date
D
DateTimeToChar
Converts a datetime expression into a character one with pattern YYYYMMDDhhmmss.
C
datetime
T
CharToDate
Converts a character expression with pattern YYYYMMDD or DD/MM/YYYY into a date one.
D
str
C
CharToDateTime
Converts a character expression with pattern YYYYMMDDhhmmss into a datetime one.
T
str
C
Day
Returns the day of the specified date.
N
date
D
Month
Returns the month of the specified date.
N
date
D
Year
Returns the year of the specified date.
N
date
D
Date
Returns the current system date or casts a datetime to date.
D
dateTime
Optional datetime to cast as date.
T
DateTime
Returns the current date and time as a Datetime value (client and server returned values may differ due to timezone settings) or casts a datetime to date.
T
date
Optional date to cast as datetime.
D
Hour
Returns the hour portion from a Datetime expression.
N
datetime
T
Minute
Returns the minute portion from a Datetime expression.
N
datetime
T
Sec
Returns the second portion from a Datetime expression.
N
datetime
T
DayOfWeek
Returns a numeric day-of-the-week value from a Date expression.
N
date
D
Week
Returns a number representing the week of the year from a Date expression.
N
date
D
DateDiff
Returns the measure in days of the time interval described by the two parameters.
N
from
Specifies the interval's start.
D
to
Specifies the interval's end.
D
AddDays
Returns a date expression by shifted the number of days specified.
D
date
Specifies the date to manipolate.
D
days
Specifies the number of days.
N
AddSeconds
Returns a DateTime expression by shifted the number of seconds specified.
T
datetime
Specifies the datetime to manipolate.
T
seconds
Specifies the number of seconds.
N
WRFormatNumber
Returns a string .
N
numb
Specifies the number to format.
N
decLen
specifies the number of digits for the decimal part.
N
decSep
Specifies the character to use as decimal separator.
S
milSep
Specifies the character to use as thounsands separator.
S