PC SOFT

WINDEV的在线文档

  • Overview
  • Initializing a memory Looper control
  • Adding rows into a memory Looper control
  • Note
  • Selecting a row
  • Modifying the attributes or controls of a row
  • Modifying all the attributes or controls of a row
  • Modifying an attribute or a control
  • Deleting a row
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview
The main concepts for programming the memory Looper controls are as follows. Several WLanguage functions allow you to manage the memory Looper controls by programming.

Do not hesitate to see the documentation about these functions. See Functions for managing the Looper controls for more details.

16版本和更高版本
WinDevLinux The Looper control is available in WinDev for Linux.
16新版本
WinDevLinux The Looper control is available in WinDev for Linux.
WinDevLinux The Looper control is available in WinDev for Linux.

Initializing a memory Looper control
The creation of a row in a Looper control is not automatically performed. It must be explicitly requested via a call to:

Adding rows into a memory Looper control
Adding rows into a memory Looper control is performed:

Note

To make the code easier to read, you have the ability to use the following method:
  1. Add an empty row.
  2. Assign each attribute or control one by one.
An error automatically occurs when deleting an attribute or a control. However, the display time may be longer.

Selecting a row

A row cannot be selected.

Modifying the attributes or controls of a row

Modifying all the attributes or controls of a row

To modify the attributes or controls of a specific row, use 重复区域修改 or 重复区域修改行 and specify the subscript of the row to modify.

For example:

// Modify the row #3
重复区域修改LOOP_Looper1"Highlander"+TAB+"103min"+TAB+"Unknown"+...
TAB+"C. Lambert"+TAB+""+TAB+"RO120"3

To modify the attributes or controls of the current row, there is no need to specify the subscript.

Modifying an attribute or a control

To modify an attribute or a control, specify the name of the attribute or control to modify.
  • Modifying the attribute or control of a specific row: The subscript of the row must be specified.
  • Modifying an attribute or control in the current row: There is no need to specify the subscript.

Deleting a row
The deletion of a row must be explicitly requested by 重复区域删除. The following syntax is used:

LooperDelete(<LooperName>[,Subscript])

If the subscript is specified, 重复区域删除 deletes the row corresponding to the subscript. Otherwise, the current row is deleted. For example:

重复区域删除LOOP_CUSTOMER

The deletion of a looper row deletes all the values of the attributes or controls for this row.