|
|
|
|
|
- Use conditions
- Row characteristics
- Sort
- Modifying a Looper control without attributes
LooperModifyLine (Function) In french: ZoneRépétéeModifieLigne Changes the values of the attributes in a row of a Looper control.
// Modify a row in a Looper control LooperModifyLine(LOOP_Looper1, Index, ProductName, ProductCode)
// Modifies a value in the Looper control at position 12 LooperModifyLine(LOOP_Looper1, 12, LastName, FirstName, PhoneNum, FaxNum)
Syntax
LooperModifyLine(<Looper control> [, <Index> [, <Value 1> [, <Value N>]]])
<Looper control>: Control name Name of the Looper control to be used. If this parameter is equal to an empty string (""), the modification will be performed in the current Looper control. <Index>: Optional integer Index of the row to be modified.- If this parameter is not specified, the modification will be performed on the current element.
- A WLanguage error is displayed if <Index> is greater than the number of rows.
<Value 1>: Type of associated attribute (optional) Value of the 1st attribute of the row that must be modified in the specified Looper control. The different values must be specified in the order of the attributes (Looper control description window). If none of these parameters is specified, LooperModifyLine assigns an empty string ("") or 0. <Value N>: Type of associated attribute (optional) Value of the Nth attribute of the row that must be modified in the specified Looper control. The different values must be specified in the order of the attributes (Looper control description window). If none of these parameters is specified, LooperModifyLine assigns an empty string ("") or 0. Remarks Use conditions LooperModifyLine can be used on: - a Looper control based on a data file,
- a Looper control populated programmatically.
Row characteristics If a value is the result of a calculation, enclose the numerical expression in brackets. For example:
LooperModifyLine(LOOP_CalcLooper, 5, (53+29), (83-21))
Sort If LooperModifyLine modifies a sort attribute of the current Looper control, the sort order set with this attribute will be removed. Modifying a Looper control without attributes To modify a Looper control without attributes, it is recommended to directly change the value of the relevant controls. For example:
LOOP_Looper1[23].LastNameControl = "Hobbes"
LOOP_Looper1[23].FirstNameControl = "Samantha"
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|