PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Parameters passed to the window to open
  • Opening mode of window
  • Limitations
  • Closing a window
  • Title of window to open
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
OpenMobileWindow (Function)
In French: OuvreFenêtreMobile
Opens a window in a mobile application.
Notes:
  • This function replaces OpenChild used to open windows in a mobile application. Only the mobile feature will be presented in this documentation page. See OpenChild for more details.
  • OpenMobileWindow is available in all the products to allow for a multi-product code. Functions or procedures that use OpenMobileWindow can be shared between several products without generating any compilation error.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
OpenMobileWindow(WIN_EditOrder, gnOrderID)
Syntax
OpenMobileWindow(<Window Name> [, <Parameter1> [, <Parameter2> [, ... ]]])
<Window Name>: Character string (with or without quotes)
  • Name of mobile window to open.
  • Name and full path of window (".WDW" file) to open.
    Android You cannot specify the full name of file to open (".WPW" file).
<Parameter1>: Type of value sent to the window (optional)
First parameter that will be passed to the "Global declarations" process of window to open. This parameter is passed by value and it is considered as being a variable global to the window.
This parameter cannot correspond to an array variable (the arrays can only be passed by address).
<Parameter2>: Type of value sent to the window (optional)
Second parameter that will be passed to the "Global declarations" process of window to open. This parameter is passed by value and it is considered as being a variable global to the window.
This parameter cannot correspond to an array variable (the arrays can only be passed by address).
Remarks

Parameters passed to the window to open

The parameters are retrieved in the "Global declarations" process of window. To do so, specify the following line at the beginning of process:
PROCEDURE <Window Name> (<Parameter1> [, <Parameter2> [, ...]])
These parameters are passed by value and not by address.

Opening mode of window

The window is opened in non-modal mode:
  • the opened window becomes the current window.
  • after the window opening, the processes following the call to OpenMobileWindow in the parent window are run.
  • the user will have the ability to click one of the parent windows of opened window.
    AndroidiPhone/iPad The controls found in the parent windows cannot be accessed by the user as long as a child window is opened.

Limitations

  • OpenMobileWindow must not be called in the initialization code of project.
  • Universal Windows 10 App OpenMobileWindow must not be called in the closing code of child window.

Closing a window

A window opened by OpenMobileWindow can be closed by Close (without parameter) from any process:
  • of the window,
  • of a window control.

Title of window to open

By default, the window title is the one defined in the editor.
To modify the window title, use NextTitle or CurrentTitle.
Components
WINDEV wd230obj.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment