Premenné
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.
CCur Function
Converts a string expression or numeric expression to a currency expression. The locale settings are used for decimal separators and currency symbols.
CBool Function
Converts a string comparison or numeric comparison to a Boolean expression, or converts a single numeric expression to a Boolean expression.
DefBool Statement
If no type-declaration character or keyword is specified, the DefBool statement sets the default data type for variables, according to a letter range.
DefCur Statement
If no type-declaration character or keyword is specified, the DefCur statement sets the default variable type, according to a letter range.
DefDate Statement
If no type-declaration character or keyword is specified, the DefDate statement sets the default variable type, according to a letter range.
DefDbl Statement
Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
DefErr Statement
If no type-declaration character or keyword is specified, the DefErr statement sets the default variable type, according to a letter range.
DefInt Statement
Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
DefLng Statement
Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
DefObj Statement
Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
DefSng Statement
If no type-declaration character or keyword is specified, the DefSng statement sets the default variable type, according to a letter range.
DefStr Statement
If no type-declaration character or keyword is specified, the DefStr statement sets the default variable type, according to a letter range.
DefVar Statement
Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
IsEmpty Function
Tests if a Variant variable contains the Empty value. The Empty value indicates that the variable is not initialized.
IsNull Function
Tests if a Variant contains the special Null value, indicating that the variable does not contain data.
IsNumeric Function
Testuje, či je výraz číslo. Ak je výraz číslo, funkcia vráti True, inak vráti False.
IsObject Function
Testuje, či je premenná typu object OLE objekt. Ak je premenná OLE objekt, vráti funkcia True, inak vráti False.
Erase Function
Vymaže obsah elementov polí s pevnou veľkosťou a uvoľňuje pamäť využívanú poľami s dynamickou veľkosťou.
Option Explicit Statement
Určuje, že je potrebné každú premennú v programe explicitne deklarovať príkazom Dim.
Public Statement
Deklaruje premennú na úrovni modulu (t.j. nie do procedúry alebo funkcie), takže je prístupná vo všetkých knižniciach a moduloch.
Global Statement
Deklaruje premennú na globálnej úrovni (t.j. nie v procedúre alebo funkcii), takže je prístupná vo všetkých knižniciach a moduloch aktuálnej relácie.
Static Statement
Deklaruje premennú na úrovni podprogramu v rámci procedúry alebo funkcie, takže hodnota premennej je platná i po ukončení procedúry či funkcie. Tiež platí konvencia príkazu Dim.
TypeName Function; VarType Function
Vráti reťazec (TypeName) alebo číselnú hodnotu (VarType), ktorá obsahuje informácie o premennej.
FindObject Function
Umožňuje adresovať objekty za behu programu ako parametre typu string použitím názvu objektu.
FindPropertyObject Function
Umožňuje adresovať objekty za behu programu ako parametre typu string použitím názvu objektu.
EqualUnoObjects Function
Vráti True, ak dva určené Basic Uno objekty reprezentujú rovnakú inštanciu Uno objektu.