PC SOFT

WINDEV的在线文档

  • Overview
  • Displaying an information in an edit control
  • Retrieving the value entered in an edit control
  • Properties specific to the edit controls
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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
An edit control can be handled by programming. To do so, use the variable of the edit control in the code directly.

The variable of the edit control corresponds to the name of the edit control. The type of the variable depends on the type of the edit control (numeric, text, currency, ...).

Displaying an information in an edit control
To display an information in an edit control, a simple assignment is sufficient.

Some examples:

  • direct assignment:
    EDT_CustomerName"Doe"
  • assignment by variable:
    EDT_NAMECustomer_Name
  • assignment by calculation:
    EDT_NAME无空格CUSTOMER.LASTNAME)+TAB+无空格CUSTOMER.FIRSTNAME
Note: If the control is associated with a data file item, the assignment is automatically performed by using:You can also use the following notation: CustomerName = CUSTOMER.NAME. See Link an edit control to an item for more details.

Retrieving the value entered in an edit control
To retrieve the content of an edit control:
  • a simple assignment is sufficient.
    For example:
    CurrentEditContentEDT_EDIT1
  • retrieve part of the information.
    For example:
    Initial左边取值EDT_Name1
    InitialEDT_Name【【1】】
  • use ..值
Note: If the control is associated with a data file item, the entered value is automatically retrieved by using:You can also use the following notation: CUSTOMER.NAME = Edit1. See Link an edit control to an item for more details.

Properties specific to the edit controls
The following properties are used to manage the characteristics of an edit control by programming.
Any type of edit control
水平对齐Used to find out and modify the horizontal alignment of an edit control.
垂直对齐Used to find out and modify the vertical alignment of an edit control.
光标Used to find out and modify the position of the mouse cursor in an edit control.
鼠标拖放目标Used to find out and modify the behavior of the target control during Drag and Drop.
鼠标拖放源Used to find out and modify the behavior of the source control during Drag and Drop.
省略号Used to find out and modify the management mode of the ellipse in an edit control.
光标结束Used to find out and modify the position of end of selection of the mouse cursor.
输入掩码Used to find out and modify the input mask.
左缩进Used to find out and modify the left indent applied to the text displayed in the edit control.
管理RTFUsed to find out whether a control is in RTF format (Rich Text Format) and to modify the RTF type of a control.
选定文本Used to find out and modify the text selected in an edit control.
输入类型Used to find out the type of an edit control.
Text edit controls only
自动链接Used to find out and modify the detection mode of the links in the multi-line edit controls.
密码Used to find out whether an edit control is a "Password" control
多行Used to find out whether an edit control is multi-line.
Currency + Euro edit control only
货币显示Allows you to find out and modify the currency used when displaying or entering a value in a "Currency + Euro" edit control.
货币记忆Allows you to find out and modify the currency used when handling a "Currency + Euro" edit control by programming.
Numeric edit controls onlyDuration and Numeric type edit control
最大界限Used to find out and modify the upper bound of an edit control.
最小界限Used to find out and modify the lower bound of an edit control.

To find out the entire list of WLanguage properties that can be used with an edit control, see Properties associated with an edit control.