|
- Use conditions
- Adding an empty row
- Characteristics of the row
- Position of added row
- Tips
LooperAddLine (Function) In french: ZoneRépétéeAjouteLigne
// Initialize the Looper control named LOOP_LOOPER1 LooperDeleteAll(LOOP_LOOPER1) HReadFirst(Product, ProdName) WHILE HOut(Product) = False LooperAddLine(LOOP_LOOPER1, Product.ProdName, Product.Code) HReadNext(Product, ProdName) END
Syntax
Adding a row to a Looper control with attributes Hide the details
<Result> = LooperAddLine(<Looper control> [, <Value 1> [... [, <Value N>]]])
<Result>: Integer - Number of the added row,
- 0 if an error occurred.
<Looper control>: Control name Name of Looper control to use. If this parameter is equal to an empty string (""), the addition will be performed into the current Looper control. <Value 1>: Type of associated attribute (optional) Value of 1st attribute for the new row. The different values must be specified in the order of attributes (description window of Looper control). To specify no value for one of the attributes, use an empty string ("") or 0 (depending on the type of attribute). An empty row will be added if none of these parameters is specified. <Value N>: Type of associated attribute (optional) Value of Nth attribute for the new row. The different values must be specified in the order of attributes (description window of Looper control). To specify no value for one of the attributes, use an empty string ("") or 0 (depending on the type of attribute). An empty row will be added if none of these parameters is specified. Remarks Use conditions LooperAddLine can be used on a browsing or memory Looper control.
Adding an empty row Once an empty row was added, each attribute or each control must be initialized one by one. Characteristics of the row - If a value corresponds to the result of a calculation, the numeric expression must be enclosed in brackets.
For example:
LooperAddLine(LOOP_CalculationLooper, (53+29), (83-21))
- Formatting attributes (e. g. color) that are not specified in the row display code are automatically reset.
Position of added row By default, the row is added at the end of the Looper control. If the Looper control is sorted ( LooperSort), the added row is positioned in the Looper control according to the current sort.
This page is also available for…
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |