- Looper, List Box, Combo Box and Table control
- Chart control
- Using the ..Empty property on a report
- Empty property used in the arrays and associative arrays
- Limits
Empty (Property) In french: Vide
// This control becomes visible // if the value of the item linked to the "EDT_Phone" control // is not specified for the current record IF EDT_Phone..Empty = False THEN EDT_Phone..Visible = False END
// If the "TABLE_CustomerTable" control is empty, // add a new row into this control IF TABLE_CustomerTable..Empty = True THEN TableAddLine(TABLE_CustomerTable, "Davis", "Peter") END
Syntax
<Result> = <Element used>..Empty
<Result>: Boolean - True if the specified element is empty,
- False otherwise.
<Element used>: Type of element Name of element to use. Remarks Looper, List Box, Combo Box and Table control ..Empty is used to find out whether the control is empty (..Empty returns True) or not. This property applies to the Table, TreeView Table, List Box, ListView, Combo Box and Looper controls (see Limits). Empty property used in the arrays and associative arrays ..Empty is used to find out: - Whether an array or an associative array is empty (..Empty returns True).
Example:
// Associative array of file sizes aaFileSize is associative array of int ... IF aaFileSize..Empty = False THEN Info("The array contains at least one element") END
- Whether an element of an associative array exists or not. For an associative array without duplicate, ..Empty is set to False if the element exists. For an associative array with duplicates, ..Empty is set to False if at least one element exists.
Example:
// Associative array of integers // indexed on strings and with duplicates aaIDPerCustomer is associative array of int // Add the identifier of customer "A" aaIDPerCustomer["A"] = 55 // Add the identifier of customer "B" aaIDPerCustomer["B"] = 321
IF aaIDPerCustomer["A"]..Empty = False THEN Info("At least one element A exists") END
This page is also available for…
|
|
|