mK5W5‖Variables

9BAUk‖The following statements and functions are for working with variables. You can use these functions to declare or define variables, convert variables from one type to another, or determine the variable type.

dj5DM‖CCur Function

iR5VT‖Converts a string expression or numeric expression to a currency expression. The locale settings are used for decimal separators and currency symbols.

g6FfB‖CBool Function

fENzo‖Converts an expression or a set of expressions into a boolean. An expression is composed of strings, numbers and operators. Comparison, logical or mathematical operators are allowed inside expressions.

7Sonr‖CDate Function

DYpHk‖Converts any string or numeric expression to a date value.

keJSN‖CDec Function

aEBmF‖Converts a string expression or numeric expression to a decimal expression.

srMKR‖CDbl Function

EwDaU‖Converts any numerical expression or string expression to a double type.

zGC6k‖CInt Function

dESLg‖Converts any string or numeric expression to an integer.

eNxuW‖CLng Function

aLcQC‖Converts any string or numeric expression to a long integer.

KSFiw‖Const Statement

xPBxj‖Defines one or more identifiers as constants.

oYHMQ‖CSng Function

8RgCe‖Converts any string or numeric expression to data type Single.

DQkiY‖CStr Function

3CEMW‖Converts any numeric expression to a string expression.

CEtre‖CVar Function

cGuyq‖Converts a string expression or numeric expression to a variant expression.

zHAeD‖CVErr Function

3B8u2‖Converts a string expression or numeric expression to a variant expression of the sub type "Error".

4sW4T‖DefBool Statement

JCPLq‖If no type-declaration character or keyword is specified, the DefBool statement sets the default data type for variables, according to a letter range.

zEeZG‖DefCur Statement

d4KGm‖If no type-declaration character or keyword is specified, the DefCur statement sets the default variable type, according to a letter range.

8jkba‖DefDate Statement

7EJB8‖If no type-declaration character or keyword is specified, the DefDate statement sets the default variable type, according to a letter range.

gX7T8‖DefDbl Statement

gJGCw‖Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.

fEMEo‖DefErr Statement

yQsoP‖If no type-declaration character or keyword is specified, the DefErr statement sets the default variable type, according to a letter range.

2Fhxz‖DefInt Statement

8QFfR‖Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.

z3DrG‖DefLng Statement

RECCG‖Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.

3DF7A‖DefObj Statement

vzCDm‖Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.

eYYKA‖DefSng Statement

f46uc‖If no type-declaration character or keyword is specified, the DefSng statement sets the default variable type, according to a letter range.

W3pG2‖DefStr Statement

hqQDQ‖If no type-declaration character or keyword is specified, the DefStr statement sets the default variable type, according to a letter range.

2a43C‖DefVar Statement

rLx6D‖Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.

ESKNC‖Dim Statement

9gRSS‖Declares variables or arrays.

EWARY‖ReDim Statement

F9HMw‖Declares or redefines variables or arrays.

9LuBk‖Type Statement

TYvyD‖Define non-UNO data structures.

JfFRY‖IsArray Function

6uXeM‖Determines if a variable is a data field in an array.

AeABQ‖IsDate Function

GHcvs‖Tests if a numeric or string expression can be converted to a Date variable.

XoSo2‖IsEmpty Function

CvCEz‖Tests if a Variant variable contains the Empty value. The Empty value indicates that the variable is not initialized.

FDXnr‖IsError Function

yQg58‖Tests if a variable contains an error value.

zHiAW‖IsNull Function

sJ5h3‖Tests if a Variant contains the special Null value, indicating that the variable does not contain data.

77Kcm‖IsNumeric Function

CXQ5r‖Tests if an expression is a number. If the expression is a number, the function returns True, otherwise the function returns False.

ZTeih‖IsObject Function

AyVCR‖Tests if a variable is an object, as opposed to primitive data types such as dates, numbers, texts. The function returns True if the variable is an object, otherwise it returns False.

nVQSS‖LBound Function

tPdvo‖Returns the lower boundary of an array.

kwd7d‖UBound Function

AEcfy‖Returns the upper boundary of an array.

PFo8B‖Let Statement

SiQNq‖Assigns a value to a variable.

aXJZm‖Array Function

ZFAuc‖Returns the type Variant with a data field.

UEPYF‖DimArray Function

D6knK‖Returns a Variant array.

W6k5N‖Erase Statement

xqtMK‖Erases the contents of array elements of fixed size arrays, and releases the memory used by arrays of variable size.

aN2F8‖Option Base Statement

7SyG9‖Defines the default lower boundary for arrays as 0 or 1.

r5HhA‖Option Explicit Statement

kHGHE‖Specifies that every variable in the program code must be explicitly declared with the Dim statement.

aAijE‖Public Statement

f5QpN‖Dimensions a variable or an array at the module level (that is, not within a subroutine or function), so that the variable and the array are valid in all libraries and modules.

7Jwha‖Global keyword

rrYQS‖Dimensions a variable or an array at the global level (that is, not within a subroutine or function), so that the variable and the array are valid in all libraries and modules for the current session.

iHDtz‖Static Statement

eod6b‖Declares a variable or an array at the procedure level within a subroutine or a function, so that the values of the variable or the array are retained after exiting the subroutine or function. Dim statement conventions are also valid.

2vqaB‖TypeName Function; VarType Function

zkF9a‖Returns text or a numeric value that contain type information for a variable.

PaNUT‖Set Statement

qNuUW‖Sets an object reference on a variable.

ZPfhh‖FindObject Function

aFznu‖Enables an object to be addressed at run-time as a string parameter through the object name.

v7jtc‖FindPropertyObject Function

pkBYN‖Enables objects to be addressed at run-time as a string parameter using the object name.

RA8tP‖Optional (in Function Statement)

Ebzjt‖Allows you to define parameters that are passed to a function as optional.

N3Uk9‖IsMissing Function

ZMKxG‖Tests if a function is called with an optional parameter.

kE9xe‖HasUnoInterfaces Function

JUPxm‖Tests if a Basic Uno object supports certain Uno interfaces.

zeBDF‖EqualUnoObjects Function

Gc4cj‖Returns True if the two specified Basic variables represent the same Uno object instance.

JG2fN‖IsUnoStruct Function

fN4db‖Returns True if the given object is a Uno struct.