PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE


  • Finding out the value returned by a child window
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
ReturnedValue (Property)
 
..ReturnedValue 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.
WINDEVWindows Mobile Reminder: A window opened by Open may return a result when it is closed. This value is returned:
  • by the Result keyword found in the closing code of the window,
  • by Close,
  • by ..ReturnedValue used before closing the window.
WEBDEV - Código Servidor Reminder: A page opened by PageDisplayDialog may return a result when it is closed. This value is returned:
Versiones 18 y posteriores
AndroidiPhone/iPadUniversal Windows 10 App Used on the MyChildWindow keyword, ..ReturnedValue allows you to retrieve the value returned by a child window in a mobile application.
Nueva funcionalidad versión 18
AndroidiPhone/iPadUniversal Windows 10 App Used on the MyChildWindow keyword, ..ReturnedValue allows you to retrieve the value returned by a child window in a mobile application.
AndroidiPhone/iPadUniversal Windows 10 App Used on the MyChildWindow keyword, ..ReturnedValue allows you to retrieve the value returned by a child window in a mobile application.
AndroidiPhone/iPadUniversal Windows 10 App Used on the MyChildWindow keyword, ..ReturnedValue allows you to retrieve the value returned by a child window in a mobile application.
Versiones 19 y posteriores
WINDEViPhone/iPadWindows MobileUniversal Windows 10 App Reminder: A report printed by iPrintReport may return a result at the end of its print. This value is returned:
  • by the Result keyword found in the closing code of the report,
  • by ..ReturnedValue used before closing the report.
Nueva funcionalidad versión 19
WINDEViPhone/iPadWindows MobileUniversal Windows 10 App Reminder: A report printed by iPrintReport may return a result at the end of its print. This value is returned:
  • by the Result keyword found in the closing code of the report,
  • by ..ReturnedValue used before closing the report.
WINDEViPhone/iPadWindows MobileUniversal Windows 10 App Reminder: A report printed by iPrintReport may return a result at the end of its print. This value is returned:
  • by the Result keyword found in the closing code of the report,
  • by ..ReturnedValue used before closing the report.
Versiones 16 y posteriores
WINDEV Mobile This property is now available for the Windows Phone applications.
Nueva funcionalidad versión 16
WINDEV Mobile This property is now available for the Windows Phone applications.
WINDEV Mobile This property is now available for the Windows Phone applications.
Versiones 15 y posteriores
Android This property is now available for the Android applications.
Nueva funcionalidad versión 15
Android This property is now available for the Android applications.
Android This property is now available for the Android applications.
Versiones 17 y posteriores
iPhone/iPad This property is now available for the iPhone/iPad applications.
Nueva funcionalidad versión 17
iPhone/iPad This property is now available for the iPhone/iPad applications.
iPhone/iPad This property is now available for the iPhone/iPad applications.
Versiones 18 y posteriores
Universal Windows 10 App This property is now available in Windows Store Apps mode.
Widget Android This property is now available in Android Widget mode.
Nueva funcionalidad versión 18
Universal Windows 10 App This property is now available in Windows Store Apps mode.
Widget Android This property is now available in Android Widget mode.
Universal Windows 10 App This property is now available in Windows Store Apps mode.
Widget Android This property is now available in Android Widget mode.
Versiones 20 y posteriores
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadWindows Mobile This property is now available:
  • for the reports,
  • for the internal reports (read-only).
Nueva funcionalidad versión 20
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadWindows Mobile This property is now available:
  • for the reports,
  • for the internal reports (read-only).
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadWindows Mobile This property is now available:
  • for the reports,
  • for the internal reports (read-only).
Versiones 21 y posteriores
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Nueva funcionalidad versión 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Ejemplo
WINDEVWindows MobileJava
// Code used to open the "WIN_EditPassword" window
MyPassword = Open(WIN_EditPassword)
IF MyPassword <> "" THEN
Info("Wrong password")
END

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

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

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

// -- Closing code of the window
WIN_EditPassword..ReturnedValue = EDT_Password
Versiones 18 y posteriores
WINDEV MobileAndroidiPhone/iPadUniversal Windows 10 App
// Event "Closing 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
// Finds the customer row
nSubscript = LooperSeek(ATT_CustomerNum, Customer.CustomerNum)
IF nSubscript > 0 THEN
// Positions on the customer row
LooperPosition(LOOP_Customers, nSubscript)
END
END
Nueva funcionalidad versión 18
WINDEV MobileAndroidiPhone/iPadUniversal Windows 10 App
// Event "Closing 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
// Finds the customer row
nSubscript = LooperSeek(ATT_CustomerNum, Customer.CustomerNum)
IF nSubscript > 0 THEN
// Positions on the customer row
LooperPosition(LOOP_Customers, nSubscript)
END
END
WINDEV MobileAndroidiPhone/iPadUniversal Windows 10 App
// Event "Closing 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
// Finds the customer row
nSubscript = LooperSeek(ATT_CustomerNum, Customer.CustomerNum)
IF nSubscript > 0 THEN
// Positions on the customer row
LooperPosition(LOOP_Customers, nSubscript)
END
END
Sintaxis

Finding out the returned value Ocultar los detalles

<Result> = <Element Name>..ReturnedValue
<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 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 Ocultar los detalles

<Element Name>..ReturnedValue = <New Value>
<Element Name>: Character string (with or without quotes)
Name of 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.
Versiones 15 y posteriores
From version 15, the following types can be used:
  • structure
  • dynamic structure
  • class
  • advanced type
  • array
  • associative array
  • queue
  • stack
  • list
Nueva funcionalidad versión 15
From version 15, the following types can be used:
  • structure
  • dynamic structure
  • class
  • advanced type
  • array
  • associative array
  • queue
  • stack
  • list
From version 15, the following types can be used:
  • structure
  • dynamic structure
  • class
  • advanced type
  • array
  • associative array
  • queue
  • stack
  • list
Observaciones
Versiones 18 y posteriores
AndroidiPhone/iPadUniversal Windows 10 App

Finding out the value returned by a child window

In the mobile applications, the windows are opened by OpenChild (instead of Open).
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 OpenChild).
In the mobile applications, the windows are opened by OpenMobileWindow (or OpenChild) instead of Open.
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 OpenMobileWindow or OpenChild).
For example:
  • In the closing code of the child window, Close is used to return a parameter:
    Close("", MyParameter)
  • In the "Closing of 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
    NameChildWindow = MyChildWindow..Name
    ValueChildWindow = MyChildWindow..ReturnedValue
Nueva funcionalidad versión 18
AndroidiPhone/iPadUniversal Windows 10 App

Finding out the value returned by a child window

In the mobile applications, the windows are opened by OpenChild (instead of Open).
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 OpenChild).
In the mobile applications, the windows are opened by OpenMobileWindow (or OpenChild) instead of Open.
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 OpenMobileWindow or OpenChild).
For example:
  • In the closing code of the child window, Close is used to return a parameter:
    Close("", MyParameter)
  • In the "Closing of 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
    NameChildWindow = MyChildWindow..Name
    ValueChildWindow = MyChildWindow..ReturnedValue
AndroidiPhone/iPadUniversal Windows 10 App

Finding out the value returned by a child window

In the mobile applications, the windows are opened by OpenChild (instead of Open).
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 OpenChild).
In the mobile applications, the windows are opened by OpenMobileWindow (or OpenChild) instead of Open.
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 OpenMobileWindow or OpenChild).
For example:
  • In the closing code of the child window, Close is used to return a parameter:
    Close("", MyParameter)
  • In the "Closing of 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
    NameChildWindow = MyChildWindow..Name
    ValueChildWindow = MyChildWindow..ReturnedValue

Limits

..ReturnedValue applies to:
  • WINDEVAndroidWidget Android Windows MobileUniversal Windows 10 AppJava the windows,
  • WEBDEV - Código Servidor the pages,
  • WINDEVAndroidWindows MobileUniversal Windows 10 AppJava the options found in the Radio Button controls.
  • Versiones 19 y posteriores
    WINDEV the internal windows only if they are opened by Open.
    Nueva funcionalidad versión 19
    WINDEV the internal windows only if they are opened by Open.
    WINDEV the internal windows only if they are opened by Open.
  • Versiones 20 y posteriores
    WINDEVReportes y ConsultasiPhone/iPadWindows MobileUniversal Windows 10 App the reports.
    Nueva funcionalidad versión 20
    WINDEVReportes y ConsultasiPhone/iPadWindows MobileUniversal Windows 10 App the reports.
    WINDEVReportes y ConsultasiPhone/iPadWindows MobileUniversal Windows 10 App the reports.
  • Versiones 20 y posteriores
    WINDEVReportes y ConsultasiPhone/iPadWindows MobileUniversal Windows 10 App the internal reports (in read-only).
    Nueva funcionalidad versión 20
    WINDEVReportes y ConsultasiPhone/iPadWindows MobileUniversal Windows 10 App the internal reports (in read-only).
    WINDEVReportes y ConsultasiPhone/iPadWindows MobileUniversal Windows 10 App the internal reports (in read-only).
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario