For the Looper controls without attributes, we recommend that you use <Looper>.InsertLine.

Versions 15 and later

This function is now available for Android applications.

New in version 15

This function is now available for Android applications.

This function is now available for Android applications.

Versions 16 and later

This function is now available for WINDEV applications in Linux.

This function is now available for Windows Phone applications.

New in version 16

This function is now available for WINDEV applications in Linux.

This function is now available for Windows Phone applications.

This function is now available for WINDEV applications in Linux.

This function is now available for Windows Phone applications.

Versions 17 and later

This function is now available for iPhone/iPad applications.

This function is now available in Browser code.

New in version 17

This function is now available for iPhone/iPad applications.

This function is now available in Browser code.

This function is now available for iPhone/iPad applications.

This function is now available in Browser code.

Versions 18 and later

This function is now available in Windows Store apps mode.

New in version 18

This function is now available in Windows Store apps mode.

This function is now available in Windows Store apps mode.

Versions 21 and later

This function is now available in Universal Windows 10 App mode.

New in version 21

This function is now available in Universal Windows 10 App mode.

This function is now available in Universal Windows 10 App mode.

Example

// Initialize the Looper control named LOOP_LOOPER1 LOOP_LOOPER1.DeleteAll() HReadFirst(Product, ProdName) WHILE HOut() = False LOOP_LOOPER1.Insert(Product.ProdName + TAB + Product.Code) HReadNext(Product, ProdName) END

// Add values into the Looper control at position 12 LOOP_Looper1.Insert(LastName + TAB + FirstName + TAB + PhoneNum + TAB + FaxNum, 12)

List of values that will be inserted into the new row. This parameter must have the following format: <Value 1>+TAB+ ... +<Value N> The different values must be specified in the order of the attributes (Looper control description window). To specify no value for an attribute, use an empty string ("") or 0 (depending on the type of the attribute).

<Subscript>: Optional integer

Subscript of row from which the new row will be inserted.

If this parameter is not specified or if it is equal to -1, the insertion will be performed before the current row. If no row is selected, the insertion will be performed at the end of Looper control.

If <Subscript> is greater than the number of rows, the insertion will be performed at the end of Looper control. In this case, <Looper>.Insert is equivalent to <Looper>.Add.

If this parameter is equal to 0, the insertion will be performed at the beginning of Looper control.

Remarks

Use conditions

<Looper>.Insert can be used on a browsing or memory Looper control.

This function is not available for Linear Looper controls. This function is available for Looper controls in browser mode only.

This function is available for Looper controls in Ajax mode, Looper controls in classic mode and Linear Looper controls.

<Looper>.Insert can only be used in a memory Looper control.

Characteristics of the row

If a value corresponds to the result of a calculation, the numeric expression must be enclosed in brackets. For example: