PC SOFT

WINDEV的在线文档

  • Characteristics of the item
  • Handling the item and the combo box
  • To select in the Combo Box control the value stored in the item
  • To retrieve the content of the Combo 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本地访问

Combo Box control linked to an item

Characteristics of the item
A Combo Box control can correspond to a data file, a query, ...

The following types of items can be associated with a Combo Box control:

  • Text,
  • Numeric,
  • Date or Time,
  • Radio button, List box, Combo box.
The item associated with the Combo Box control will contain the subscript of the element selected in the control.

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

Handling the item and the combo box

To select in the Combo Box control the value stored in the item

1st case: the window or the page is associated with a data file

All the controls associated with an item of the data file (or linked file) 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:

<Name of Combo Box> = <FileName>.<ItemName>

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

1st case: the window or the page is associated with a data file

All the items found in the file (or in the linked file) associated with a window control or 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:

<File Name>.<Item Name> = <Name of Combo Box>