PC SOFT

WINDEV的在线文档

  • Characteristics of the item
  • To retrieve the content of a single-selection List Box in an item
  • To select in the list box the value stored in the item:
  • To retrieve the content of the List Box control in an item
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

List Box control linked to an item

Characteristics of the item
A List Box control can correspond to an item found in a file, in a query, ...

The following types of items can be associated with a list box:

  • Text
  • Numeric
  • Date or Time
  • Radio button, List box, Combo box
The item associated with a list box contains the subscript of the element selected in the list box.

Note: When an item is associated with a list box, the content of the list box is the same for all the file records. The content of the list box can be entered directly in the data model editor or the page editor, or can be assigned by programming (列表添加).

To retrieve the content of a single-selection List Box in an item

To select in the list box the value stored in the item:

1st case: the window or the page is associated with a data file
All the items of the data file (or linked file) associated with a control found in the window (or in the page) will be assigned by:2nd case: the window or the page is not associated with a specific data file
Each control must be assigned individually. Use the following syntax:
<FileName>.<ItemName> = <Name of List Box>

To retrieve the content of the List Box control in an item

1st case: the window or the page is associated with a data file
All the items of the data file (or linked file) associated with a page control will be assigned by:2nd case: the window or the page is not associated with a specific data file
Each control must be assigned individually. Use the following syntax:
<FileName>.<ItemName> = <Name of List Box>