PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

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
Open (External language)
In French: Ouvre
Opens a window.
Example
// In C
CALLWD("Open,WIN_Window1.WDW");
// In Pascal
CALLWD('Open,WIN_Window1.WDW');
// In VB
call CALLWD("Open,WIN_Window1.WDW")
Syntax
Open(<Window Name> [, <"/CR"> [, <Y> [, <X> [, <"+TAB+"Parameter 1"+TAB+"Parameter 2"+...>]]]])
<Window Name>: Character string
Name of the window to open. This parameter includes the path, the name and the extension of the window (the extension of the WINDEV windows is ".WDW" by default).
<"/CR">: Optional parameter
Enables you to detect an error.
<Y>: Integer (optional)
Y coordinate (in pixels) of the window (in relation to the top left corner of the screen or parent window).
<X>: Integer (optional)
X-coordinate (in pixels) of the window (in relation to the top corner of the screen).
<"+TAB+"Parameter 1"+TAB+"Parameter 2"+...>: Optional parameters
Parameters to pass to the window when it is opened.
Remarks
  • If the /CR parameter is specified, the "E*" status code is returned in WdKey in case of an error.
  • We recommend that you use Open rather than Use when the context before the window opening must be restored.
  • The opened window is stacked over the previous window (if it exists).
  • The controls found in the opened window are active. The controls found in the previous window (if it exists) are inactive.
  • To modify the title of the window, you must use Screen,Next or Screen,Current.
  • WdKey contains "*E*" if an error occurred during the opening.
  • If a window calls global procedures, the project must be run by Project before opening the window, otherwise the global procedures and the style sheet will not be recognized.
  • A window can be opened even if there is no current project. In this case, the window must be attached to no project.
Minimum required version
  • Version 14
Comments
Click [Add] to post a comment