PC SOFT

WINDEV的在线文档

  • Value of a Static control
  • Value of a Calculated control in a report
  • Value of a Bar Code control
  • Value of an Image control
  • Value of an Item control or preset control found in a report
  • Value of an RTF control
  • Value of a window or page
  • Value of an edit control
  • Value of a Button control
  • Value of a Check Box control or value of an option in a Check Box control
  • Value of a Radio Button control
  • Value of a List Box, ListView or Table control
  • Value of a cell in a Table control
  • Value of a Combo box control
  • Value of a Treeview control or a Treeview Table control
  • Value of a Progress bar, slider, Spin or Scrollbar control
  • Value of a Tab control
  • Value of a menu or value of a menu option
  • Value of a Chart control
  • Value of an OLE control
  • Value of a HideShow control
  • Value of an ActiveX control
  • Value of an HTML control
  • Value of a Map control
  • Value of a stream
  • Limits
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

..值 is used to:
  • Find out and modify the value of a report control.
  • Find out and modify the value of a control or the title of a window.
  • Find out the identifier of a stream.
  • Find out and modify the value of a control or the title of a page.
  • WinDev Center the map found in a Map control on a specific position.
  • 18版本和更高版本
    Find out the value associated with a value of an Enumeration variable.
    18新版本
    Find out the value associated with a value of an Enumeration variable.
    Find out the value associated with a value of an Enumeration variable.

Note: ..值 is rarely used and it can be replaced by an equivalent syntax (see the Notes).

18版本和更高版本
WinDevWindows Store apps This property is now available in Windows Store Apps mode.
18新版本
WinDevWindows Store apps This property is now available in Windows Store Apps mode.
WinDevWindows Store apps This property is now available in Windows Store Apps mode.
例子
// Modify the image file associated with the "IMG_Image" control
IMG_Image..值="C:\MyImages\Image.BMP"

语法

Finding out the value of an element 隐藏详细信息

<Result> = <Element Name>..值
<Result>: Any type
This result depends on the type of the element.
<Element Name>: Character string (with or without quotes)
Name of the element to use.

Modifying the value of an element 隐藏详细信息

<Element Name>..值 = <New Value>
<Element Name>: Character string (with or without quotes)
Name of the element to use.
<New Value>: Any type
New value for the specified element. This parameter depends on the type of the specified element.

注意
WinDevWindows Store apps用户代码(MCU)

Value of a Static control

..值 is used to find out and modify the text of a Static control.

<Result> is a character string.

To retrieve the text of a Static control, the following syntaxes are equivalent:

ResCaption = <Name of Static Control>..值
ResCaption = <Name of Static Control>
ResCaption = <Name of Static Control>..标签

WinDev

Value of a Calculated control in a report

..值 is used to find out and modify the value of a Calculated control in a report.

The type of <Result> depends on the type of the Calculated control.

To retrieve the value of a Calculated control, use one of the following syntaxes:

ResValue = <Name of Calculated control>..值

ResValue = <Name of Calculated control>

WinDev用户代码(MCU)

Value of a Bar Code control

..值 is used to find out and modify the value of a Bar Code control. The value of a Bar Code control corresponds to the character string represented in the bar code.

<Result> is a character string.

To retrieve the text of a Bar Code control, use one of the following syntaxes:

ResValue = <Name of Bar Code control>..值

ResValue = <Name of Bar Code control>

WinDevWindows Store apps用户代码(MCU)

Value of an Image control

..值 is used to find out and modify the image file associated with an Image control.

<Result> is a character string containing the path of the image file.

To find out the image file associated with an Image control, use one of the following syntaxes:

ResImage = <Name of Image control>..值

ResImage = <Name of Image control>

WinDev

Value of an Item control or preset control found in a report

..值 is used to find out and modify the content of the control.

In assignment, the type of the value passed to ..值 depends on the type of the item associated with the control.

If the item is a numeric item, you must assign a number to it and you must check whether the input mask is suitable (..输入掩码).

For a Date control, a date must be assigned to it.

WinDev用户代码(MCU)

Value of an RTF control

..值 is used to find out and modify the content of an RTF control. The value contains the special characters specific to the RTF format.

<Result> is a character string.

To retrieve the content of an RTF control, use one of the following syntaxes:

ResRTF = <Name of RTF control>..值

ResRTF = <Name of RTF control>

WinDevWindows Store apps用户代码(MCU)

Value of a window or page

..值 is used to find out and modify the title of a window or page.

<Result> is a character string.

..值 is equivalent to ..标题.

To find out the title of a window or the title of a page, use one of the following syntaxes:

ResTitle = <Name of window or page>..值

ResTitle = <Name of window or page>

ResTitle = <Name of window or page>..标题

WinDevWindows Store apps用户代码(MCU)

Value of an edit control

..值 is used to find out and modify the value entered in an edit control.

<Result> has the following type:

  • character string if the sub-type of the edit control corresponds to "Text", "Date" or "Time",
  • integer or real if the sub-type of the edit control corresponds to "Numeric",
  • numeric if the sub-type of the edit control corresponds to "Currency" or "Currency + Euro".
To find out the value entered in an edit control, use one of the following syntaxes:

ResValue = <Name of Edit control>..值

ResValue = <Name of Edit control>

WinDevWindows Store apps用户代码(MCU)

Value of a Button control

..值 is used to find out and modify the text of a button.

If the specified button contains an image, only the text of the button is returned. No drawing can be assigned to a button.

<Result> is a character string.

..值 is equivalent to ..标签.

To find out the text of a button, use one of the following syntaxes:

ResButton = <Button name>..值

ResButton = <Button name>

ResButton = <Button name>..标签

Value of a Check Box control or value of an option in a Check Box control

..值 is used to:
  • Check or uncheck an option in a Check Box control.
  • Find out whether an option found in a Check Box control is checked or unchecked
<Result> is a boolean:
  • if the option is checked,
  • otherwise.
To find out whether an option found in a Check Box control is checked or not, use one of the following syntaxes:

ResChecked = <Name of Check Box control>[<Option number>]..值

ResChecked = <Name of Check Box control>[<Option number>]

ResChecked = <Option name>..值

ResChecked = <Option name>

Note: If <Option number> is not specified, the first option is selected by default.

WinDevWindows Store apps用户代码(MCU)

Value of a Radio Button control

..值 is used to:
  • Find out the active option in a Radio Button control.
  • Select an option.
<Result> is an integer.

To find out the active option in a Radio Button control, use one of the following syntaxes:

ResOption = <Name of Radio Button control>..值

ResOption = <Name of Radio Button control>

Note: A Radio Button control is always positioned on a position (1 by default). To display a Radio Button control with no default option, all you have to do is assign -1 to the control value during its initialization:

// Initialize the value of "RADIO_Customer" with its initial value
RADIO_Customer..初始值=-1

WinDevWindows Store apps用户代码(MCU)

Value of a List Box, ListView or Table control

Two distinct cases may occur.
  • The List Box, ListView or Table control is a memory control OR ..字段记忆 corresponds to an empty string ("").
    ..值 is used to:
    • Find out the selected row. If no row is selected, ..值 returns -1. If the control is multi-selection, the number of the last selected row is returned.
    • Move the selection by specifying the number of the new row to select. The rows that were previously selected are deselected.
To find out the selected row, use one of the following syntaxes:
ResRow = <Name of list box, listview or table>..值

ResRow = <Name of list box, listview or table>
  • The List Box, ListView or Table control is a browsing control AND ..字段记忆 is not empty.
    ..值 is used to find out the stored item for the record associated with the selected row. If no row is selected, ..值 returns an empty string ("").
    To find out the stored item associated with the selected row, use one of the following syntaxes:
ResStoredItem = <Name of list box or table>..值

ResStoredItem = <Name of list box or table>..字段记忆

WinDev用户代码(MCU)

Value of a cell in a Table control

..值 is used to find out and modify the value of a cell in a Table control.

<Result> is a character string.

To find out the value of a cell, use one of the following syntaxes:

ResCell = <Name of Table control>[<Row number>][<Column number>]..值

ResCell = <Name of Table control>[<Row number>][<Column number>]

ResCell = <Column name>[<Row number>]..值

ResCell = <Column name>[<Row number>]

Special case: Value of a cell in the current row
If only the name of the column is specified, ..值 is used to:
  • Find out the value of the cell identified by the specified column and by the current row in the Table control. If there is no current row, an empty string ("") is returned.
  • Modify the value of the cell identified by the specified column and by the current row in the Table control.
<Result> is a character string.

To find out the value of the cell identified by the specified column and by the current row in the Table control, use one of the following syntaxes:

ResColumn = <Column name>..值

ResColumn = <Column name>

WinDev用户代码(MCU)

Value of a Combo box control

Two distinct cases may occur.
  • The combo box is editable AND ..字段记忆 corresponds to an empty string ("").
    ..值 is used to:
    • Find out the value of the selected item. If no element is selected, ..值 returns an empty string ("").
    • Modify the value of the selected element.
To find out the value of the selected element, use one of the following syntaxes:
ResValue = <Name of combo box>..值

ResValue = <Name of combo box>
  • The combo box is not editable OR ..字段记忆 is not empty.
    ..值 is used to find out the number of the selected element.
    To find out the number of the selected element, use one of the following syntaxes:
    ResElement = <Name of combo box>..值
    ResElement = <Name of combo box>[<Name of combo box>]
    ResElement = <Name of combo box>

19版本和更高版本
WinDev用户代码(MCU)

Value of a Treeview control or a Treeview Table control

Two distinct cases may occur.
  • The control is memory control OR ..字段记忆 corresponds to an empty string ("").
    ..值 is used to:
    • Find out the selected row. If no row is selected, ..值 returns -1. If the control is multi-selection, the number of the last selected row is returned.
    • Move the selection by specifying the number of the new row to select. The rows that were previously selected are deselected.
To find out the selected row, use one of the following syntaxes:
ResRow = <Control name>..值

ResRow = <Control name>
  • The control is a browsing control AND ..字段记忆 is not empty.
    ..值 is used to find out the stored item for the record associated with the selected row. If no row is selected, ..值 returns an empty string ("").
    To find out the stored item associated with the selected row, use one of the following syntaxes:
    ResStoredItem = <Control name>..值

    ResStoredItem = <Control name>..字段记忆
19新版本
WinDev用户代码(MCU)

Value of a Treeview control or a Treeview Table control

Two distinct cases may occur.
  • The control is memory control OR ..字段记忆 corresponds to an empty string ("").
    ..值 is used to:
    • Find out the selected row. If no row is selected, ..值 returns -1. If the control is multi-selection, the number of the last selected row is returned.
    • Move the selection by specifying the number of the new row to select. The rows that were previously selected are deselected.
To find out the selected row, use one of the following syntaxes:
ResRow = <Control name>..值

ResRow = <Control name>
  • The control is a browsing control AND ..字段记忆 is not empty.
    ..值 is used to find out the stored item for the record associated with the selected row. If no row is selected, ..值 returns an empty string ("").
    To find out the stored item associated with the selected row, use one of the following syntaxes:
    ResStoredItem = <Control name>..值

    ResStoredItem = <Control name>..字段记忆
WinDev用户代码(MCU)

Value of a Treeview control or a Treeview Table control

Two distinct cases may occur.
  • The control is memory control OR ..字段记忆 corresponds to an empty string ("").
    ..值 is used to:
    • Find out the selected row. If no row is selected, ..值 returns -1. If the control is multi-selection, the number of the last selected row is returned.
    • Move the selection by specifying the number of the new row to select. The rows that were previously selected are deselected.
To find out the selected row, use one of the following syntaxes:
ResRow = <Control name>..值

ResRow = <Control name>
  • The control is a browsing control AND ..字段记忆 is not empty.
    ..值 is used to find out the stored item for the record associated with the selected row. If no row is selected, ..值 returns an empty string ("").
    To find out the stored item associated with the selected row, use one of the following syntaxes:
    ResStoredItem = <Control name>..值

    ResStoredItem = <Control name>..字段记忆

WinDev用户代码(MCU)

Value of a Progress bar, slider, Spin or Scrollbar control

..值 is used to find out and modify the value of a Progress Bar, Slider, Spin or Scrollbar control.

<Result> is a real.

To find out the value of a Progress Bar, Slider, Spin or Scrollbar control, use one of the following syntaxes:

ResValue = <Control name>..值

ResValue = <Control name>

WinDev用户代码(MCU)

Value of a Tab control

..值 is used to find out the number of the active tab pane or to enable a tab pane.

<Result> is an integer.

To find out the number of the active tab pane, use one of the following syntaxes:

ResPane = <Tab name>..值

ResPane = <Tab name>

WinDev用户代码(MCU)

Value of a menu or value of a menu option

..值 is used to find out the number associated with the menu or with the current menu option.

Note: The number associated with a menu or a menu option is defined in the "General" tab of the description window of the menu or menu option.

<Result> is an integer.

To find out the number associated with the menu or with the current menu option, use one of the following syntaxes:

ResMenu = <Name of menu or menu option>..值

ResMenu = <Name of menu or menu option>

WinDev用户代码(MCU)

Value of a Chart control

..值 can only be used to find out the name of a Chart control.

<Result> is a character string.

To find out the name of a Chart control, use one of the following syntaxes:

Res_ChartName = <Name of Chart control>..值

Res_ChartName = <Name of Chart control>

WinDev用户代码(MCU)

Value of an OLE control

..值 is used to initialize an OLE control with an OLE object (equivalent to OLE加载).

Example:

OLE_OLE1..值="Test.OLE"

WinDev用户代码(MCU)

Value of a HideShow control

..值 is used to find out whether the HideShow control is expanded (1) or collapsed (0) and to modify its status.

Example:

// Collapses the HideShow control if it is expanded
如果HS_HideShow1..值=1,那么HS_HideShow1..值=0

WinDev用户代码(MCU)

Value of an ActiveX control

..值 is used to find out the COM identifier (ProgId) of the ActiveX used.

WinDevWindows Store apps用户代码(MCU)

Value of an HTML control

..值 is used to find out the address associated with the HTML page displayed in the control. If the page:
  • is a page built in HTML directly, the value corresponds to "about:blank".
  • is a page from a site, the value corresponds to the address of the page (www.windev.com for example).
  • is an HTML file, the value corresponds to the address of the file.
Windows Store apps ..值 returns the URL of the site but it cannot return the HTML code of the control. This property cannot be used to associate a local htm file with the HTML control.

17版本和更高版本
WinDev

Value of a Map control

..值 is used to center the map (found in a Map control) on the position corresponding to a 地理位置型 variable.

Example:

// Centers the map displayed by the "MAP_Position" control on a geographical position
MyPosition地理位置型

MAP_Position..值=MyPosition

Notes:
17新版本
WinDev

Value of a Map control

..值 is used to center the map (found in a Map control) on the position corresponding to a 地理位置型 variable.

Example:

// Centers the map displayed by the "MAP_Position" control on a geographical position
MyPosition地理位置型

MAP_Position..值=MyPosition

Notes:
WinDev

Value of a Map control

..值 is used to center the map (found in a Map control) on the position corresponding to a 地理位置型 variable.

Example:

// Centers the map displayed by the "MAP_Position" control on a geographical position
MyPosition地理位置型

MAP_Position..值=MyPosition

Notes:

WinDev用户代码(MCU)

Value of a stream

..值 is used to find out the identifier of a stream. The property can be used on the name of the stream or on the name of the Conference control associated with the stream.

Limits

WinDev For the reports, ..值 cannot be used on:
  • a report.
  • a report block.
  • a Check Box control.
  • a Chart control.

WinDev In a window, ..值 cannot be used on:
  • an option in a radio button.
  • a tab pane.
  • a group of controls.
  • a TreeView control.