ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Control functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
ParentObject (Function)
In french: ParentObject
Identifies the "parent" of a graphic object: field, column, window, page, etc.
Example
Reports and Queries
// COL_Colonne1 est dans TABLE_Table1, qui est dans la fenêtre FEN_Fenêtre2,
// qui est fille de FEN_Fenêtre1
ParentObject(COL_Colonne1)    // Renvoie "TABLE_Table1"
ParentObject(TABLE_Table1)      // Renvoie "FEN_Fenêtre2"
ParentObject(FEN_Fenêtre2)    // Renvoie "FEN_Fenêtre1"
ParentObject(FEN_Fenêtre1)    // Renvoie ""
Syntax
<Result> = ParentObject(<Object name>)
<Result>: Character string
  • If <Object name> is a control, <Result> corresponds to the name of the window (or page) to which the control belongs (even if the control is in a tab).
  • If <Object name> is a column, <Result> corresponds to the name of the Table control.
  • If <Object name> is a window, <Result> corresponds to the name of the parent window (or to an empty string ("") if <Object name> has no parent window).
  • If <Object name> is a page, <Result> corresponds to the name of the frameset (or to an empty string ("") if <Object name> has no frameset).
<Object name>: Character string
Name of the object (control, window, page, column) whose parent must be found. A WLanguage error occurs if the object is unknown.
Remarks
Component: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help