PC SOFT

WINDEV的在线文档

  • Finding out the value returned by a child window
  • 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 returned by a window or by a page.Find out and modify the value returned by a window, a page or a report.
  • Find out and modify the value returned by an option in a Radio Button control.
WinDev Reminder: A window opened by 打开 may return a result when it is closed. This value is returned:
  • by the 返回 statement keyword found in the closing code of the window,
  • by 关闭,
  • by ..返回值 used before closing the window.

18版本和更高版本
Windows Store apps Used on the MyChildWindow keyword, ..返回值 allows you to retrieve the value returned by a child window in a mobile application.
18新版本
Windows Store apps Used on the MyChildWindow keyword, ..返回值 allows you to retrieve the value returned by a child window in a mobile application.
Windows Store apps Used on the MyChildWindow keyword, ..返回值 allows you to retrieve the value returned by a child window in a mobile application.
Windows Store apps Used on the MyChildWindow keyword, ..返回值 allows you to retrieve the value returned by a child window in a mobile application.

19版本和更高版本
WinDev Reminder: A report printed by 打印报表 may return a result at the end of its print. This value is returned:
  • by the 返回 statement keyword found in the closing code of the report,
  • by ..返回值 used before closing the report.
19新版本
WinDev Reminder: A report printed by 打印报表 may return a result at the end of its print. This value is returned:
  • by the 返回 statement keyword found in the closing code of the report,
  • by ..返回值 used before closing the report.
WinDev Reminder: A report printed by 打印报表 may return a result at the end of its print. This value is returned:
  • by the 返回 statement keyword found in the closing code of the report,
  • by ..返回值 used before closing the report.

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.
20版本和更高版本
WinDev This property is now available:
  • for the reports,
  • for the internal reports (read-only).
20新版本
WinDev This property is now available:
  • for the reports,
  • for the internal reports (read-only).
WinDev This property is now available:
  • for the reports,
  • for the internal reports (read-only).
例子
WinDev
// Code used to open the "WIN_EditPassword" window
MyPassword打开WIN_EditPassword
如果MyPassword不等于"",那么
信息"Wrong password"
结束

// --------------------------------------------------------------------------------

// -- Click code on "OK" button in the "WIN_EditPassword" window
// The user types his password in the "EDT_Password" control
// and validates the window
关闭()

// --------------------------------------------------------------------------------

// -- Closing code of the window
WIN_EditPassword..返回值=EDT_Password

18版本和更高版本
Windows Store apps
// Closing process of a child window of WIN_List_Customers
// -------------------------------------------------------------
// Refreshes the list of customers
LooperDisplay(LOOP_Customers, taReExecuteQuery)

// For any return (except for the deletion)
IF MyChildWindow..ReturnedValue <> -1 THEN
nSubscript is int
// Find the customer row
nSubscript = LooperSeek(ATT_CustomerNum, Customer.CustomerNum)
IF nSubscript > 0 THEN
// Positions on the customer row
LooperPosition(LOOP_Customers, nSubscript)
END
END
18新版本
Windows Store apps
// Closing process of a child window of WIN_List_Customers
// -------------------------------------------------------------
// Refreshes the list of customers
LooperDisplay(LOOP_Customers, taReExecuteQuery)

// For any return (except for the deletion)
IF MyChildWindow..ReturnedValue <> -1 THEN
nSubscript is int
// Find the customer row
nSubscript = LooperSeek(ATT_CustomerNum, Customer.CustomerNum)
IF nSubscript > 0 THEN
// Positions on the customer row
LooperPosition(LOOP_Customers, nSubscript)
END
END
Windows Store apps
// Closing process of a child window of WIN_List_Customers
// -------------------------------------------------------------
// Refreshes the list of customers
LooperDisplay(LOOP_Customers, taReExecuteQuery)

// For any return (except for the deletion)
IF MyChildWindow..ReturnedValue <> -1 THEN
nSubscript is int
// Find the customer row
nSubscript = LooperSeek(ATT_CustomerNum, Customer.CustomerNum)
IF nSubscript > 0 THEN
// Positions on the customer row
LooperPosition(LOOP_Customers, nSubscript)
END
END

语法

Finding out the returned value 隐藏详细信息

<Result> = <Element Name>..返回值
<Result>: Any type
Value that will be returned:
  • when closing the current window or page.when closing the current window, page or report.
  • if the option is selected in the radio button.
<Element Name>: Character string (with or without quotes)
Name of the element used:
  • Name of the window or page used. This window or page must be opened.Name of the window, page, report or internal report used. This window, page or report must be opened.
  • Name of the option in the radio button. This name has the following format: <Name of Radio Button>[<Option Number>].

Modifying the returned value 隐藏详细信息

<Element Name>..返回值 = <New Value>
<Element Name>: Character string (with or without quotes)
Name of the element used:
  • Name of the window or page used. This window or page must be opened.Name of the window, page or report used. This window, page or report must be opened.
  • Name of the option in the radio button. This name has the following format: <Name of Radio Button>[<Option Number>].
<New Value>: Any type
New value to return.
15版本和更高版本
From version 15, the following types can be used:
  • structure
  • dynamic structure
  • class
  • advanced type
  • table
  • associative array
  • queue
  • stack
  • list box
15新版本
From version 15, the following types can be used:
  • structure
  • dynamic structure
  • class
  • advanced type
  • table
  • associative array
  • queue
  • stack
  • list box
From version 15, the following types can be used:
  • structure
  • dynamic structure
  • class
  • advanced type
  • table
  • associative array
  • queue
  • stack
  • list box

注意
18版本和更高版本
Windows Store apps

Finding out the value returned by a child window

In the mobile applications, the windows are opened by 打开子窗口 (instead of 打开).

You can find out the value returned by a child window in the "Closing a child window" process of the window that opened the child window (the one that called 打开子窗口).

In the mobile applications, the windows are opened by 打开移动窗口 (or 打开子窗口) instead of 打开.

You can find out the value returned by a child window in the "Closing a child window" process of the window that opened the child window (the one that called 打开移动窗口 or 打开子窗口).

For example:
  • In the closing code of the child window, 关闭 is used to return a parameter:
    Close(""MyParameter
  • In the "Closing a child window" process of the calling window, the name of the child window as well as the returned value can be retrieved by using the MyChildWindow keyword:
    // Close a child window
    NameChildWindowMyChildWindow..Name
    ValueChildWindowMyChildWindow..ReturnedValue
18新版本
Windows Store apps

Finding out the value returned by a child window

In the mobile applications, the windows are opened by 打开子窗口 (instead of 打开).

You can find out the value returned by a child window in the "Closing a child window" process of the window that opened the child window (the one that called 打开子窗口).

In the mobile applications, the windows are opened by 打开移动窗口 (or 打开子窗口) instead of 打开.

You can find out the value returned by a child window in the "Closing a child window" process of the window that opened the child window (the one that called 打开移动窗口 or 打开子窗口).

For example:
  • In the closing code of the child window, 关闭 is used to return a parameter:
    Close(""MyParameter
  • In the "Closing a child window" process of the calling window, the name of the child window as well as the returned value can be retrieved by using the MyChildWindow keyword:
    // Close a child window
    NameChildWindowMyChildWindow..Name
    ValueChildWindowMyChildWindow..ReturnedValue
Windows Store apps

Finding out the value returned by a child window

In the mobile applications, the windows are opened by 打开子窗口 (instead of 打开).

You can find out the value returned by a child window in the "Closing a child window" process of the window that opened the child window (the one that called 打开子窗口).

In the mobile applications, the windows are opened by 打开移动窗口 (or 打开子窗口) instead of 打开.

You can find out the value returned by a child window in the "Closing a child window" process of the window that opened the child window (the one that called 打开移动窗口 or 打开子窗口).

For example:
  • In the closing code of the child window, 关闭 is used to return a parameter:
    Close(""MyParameter
  • In the "Closing a child window" process of the calling window, the name of the child window as well as the returned value can be retrieved by using the MyChildWindow keyword:
    // Close a child window
    NameChildWindowMyChildWindow..Name
    ValueChildWindowMyChildWindow..ReturnedValue

Limits

..返回值 applies to:
  • WinDevWindows Store apps the windows,
  • WinDev the options of the Radio Button controls.
  • 19版本和更高版本
    WinDev the internal windows only if they are opened by 打开.
    19新版本
    WinDev the internal windows only if they are opened by 打开.
    WinDev the internal windows only if they are opened by 打开.
  • 20版本和更高版本
    WinDev the reports.
    20新版本
    WinDev the reports.
    WinDev the reports.
  • 20版本和更高版本
    WinDev the internal reports (read-only).
    20新版本
    WinDev the internal reports (read-only).
    WinDev the internal reports (read-only).