PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Use conditions
  • Characteristics of the row
  • Handling a binary memo
  • Sort
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Inserts a row into a browsing or memory Looper control.
Note: We recommend that you use LooperInsertLine. Indeed, LooperInsertLine allows you to insert:
  • TAB characters into the attributes/controls.
  • all types of values into the attributes/controls.
WINDEVWINDEV Mobile For the Looper controls without attributes, we recommend that you use LooperInsertLine.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Universal Windows 10 App This function is now available for the Windows Phone applications.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
WEBDEV - Browser code This function is now available in Browser code.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
WEBDEV - Browser code This function is now available in Browser code.
iPhone/iPad This function is now available for the iPhone/iPad applications.
WEBDEV - Browser code This function is now available in Browser code.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Initialize the Looper control named LOOP_LOOPER1
LooperDeleteAll(LOOP_LOOPER1)
HReadFirst(Product, ProdName)
WHILE HOut() = False
LooperInsert(LOOP_LOOPER1, Product.ProdName + TAB + Product.Code)
HReadNext(Product, ProdName)
END
// Add values into the looper at position 12
LooperInsert(LOOP_Looper1, LastName + TAB + FirstName + TAB + PhoneNum + TAB + FaxNum, 12)
Syntax
<Result> = LooperInsert(<Looper Control> , <Value> [, <Subscript>])
<Result>: Boolean
  • True if the addition was successful,
  • False otherwise.
<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>: Character string (with quotes)
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 attributes (description window of the Looper control).
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, LooperInsert is equivalent to LooperAdd.
  • If this parameter is equal to 0, the insertion will be performed at the beginning of Looper control.
Remarks

Use conditions

LooperInsert can be used on a browsing or memory Looper control.
PHP LooperInsert can be used on a memory Looper control only.
WEBDEV - Browser code This function is not available for the linear Looper controls. This function is available for the Browser Looper controls only.
WEBDEV - Server codePHP This function is available for the Ajax Looper controls, the Classic Looper controls and the linear Looper controls.

Characteristics of the row

If a value corresponds to the result of a calculation, the numeric expression must be enclosed in brackets. For example:
LooperInsert(LOOP_CalcLooper, (53+29)+TAB+(83-21),12)

Handling a binary memo

To insert a binary memo into a Looper control, use LooperInsertLine.

Sort

LooperInsert ignores the sort.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment