|
|
|
|
|
<Looper>.InsertIW (Function) In french: <Zone répétée>.InsèreFI Inserts a row as an internal window into a Looper control populated programmatically. Attention: To use this function, the "Use an internal window per row (LooperAddIW function)" option must be checked ("Contents" tab in the field description).. ZR_Composant.InsèreFI(1, FI_PROCESSEUR, "i7", 2)
ZR_Composant.InsèreFI(2, FI_DISQUE, "SAMDATA", "SSD", 20 000 000)
Syntax
<Looper control>.InsertIW(<Index> , <Internal window> [, <Parameter 1> [... [, <Parameter N>]]])
<Looper control>: Control name Name of the Looper control to be used. <Index>: Optional integer Index of the row from which the new row will be inserted as an internal window.- If this parameter is equal to -1, the row will be inserted before the current row. If no row is selected, the row will be inserted at the end of the Looper control.
- If <Index> is greater than the number of rows, the row will be inserted at the last position in the Looper control. In this case, <Looper>.InsertIW is equivalent to <Looper>.AddIW.
- If this parameter is 0, the row will be inserted at the first position in the Looper control.
<Internal window>: Window name Name of the internal window to be used to create the row. <Parameter 1>: Type corresponding to the parameter (optional) First parameter to be passed to the internal window. This parameter is passed to the "Global declarations" event of the internal window. <Parameter N>: Type corresponding to the parameter (optional) Nth parameter to be passed to the internal window. This parameter is passed to the "Global declarations" event of the internal window. Remarks - If one of the controls in the internal window is anchored based on its content, the row height will adapt automatically. Otherwise, the row height will be the height of the internal window in edit mode.
- The name of the internal window used for a row can be retrieved using the following syntax:
<Champ Zone répétée>[Répétition/ligne].Nom - Parameters passed to internal window: Parameters are retrieved in the "Global declarations" event of the internal window. Simply write the following line of code at the start of the event:
PROCEDURE <Nom de la fenêtre>(<Paramètre 1> [, ...] [, <Paramètre N>]) For more details, see Window with parameters.
Related Examples:
|
Cross-platform examples (WINDEV Mobile): WM Sports
[ + ] This example is a sport application used to save your performances. The application calculates the distance, the time, the average speed and the number of calories spent according to the sport. The run is displayed on a map control via markers and an itinerary. The example also includes a server part used to synchronize the user data. This webservice is available in the WEBDEV "WW_Sports" example.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|