|
|
|
|
|
- Looper, List Box, Combo Box and Table control
- Chart control
- Using the Empty property on a report
- Empty property used in the arrays and in the associative arrays
- Limits
Empty (Property) In french: Vide
The Empty property is used to determine if: - a Looper, Table, List Box or Combo Box control is empty. The field can be a file or memory field.
- a Chart control contains no series.
- a report control is empty (control linked to an item).
- an array (or an associative array) contains no element.
- an element of an associative array exists or not.
- a queue, a list or a stack contains no element.
For a report, the Empty property is used to determine if the value of an item bound to a control has been specified for the current record.
New in version 2025
IF EDT_Phone.Empty = False THEN
SAI_Telephone.Visible = False
END
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 the element to be used. Remarks Looper, List Box, Combo Box and Table control The Empty property is used to determine if the control is empty (the Empty property returns True). 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 in the associative arrays The Empty property is used to determine: - If an array or associative array is empty (Empty property returns True).
Example:
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 duplicates, the Empty property is set to False if the element exists. For an associative array with duplicates, the Empty property is set to False if at least one element exists.
Example:
aaIDPerCustomer is associative array of int
aaIDPerCustomer["A"] = 55
aaIDPerCustomer["B"] = 321
IF aaIDPerCustomer["A"].Empty = False THEN
Info("At least one element A exists")
END
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|