PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • ParentObject and the MDI windows
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
Identifies the "parent" of a graphic object: control, column, window, page, ...
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android Widget This function is now available in Android Widget mode.
Example
WINDEVReports and QueriesWindows MobileJavaUser code (UMC)
// COL_Column1 is in TABLE_Table1, which is in the WIN_Window2 window,
// which is the child of the WIN_Window1 window
ParentObject(COL_Column1)    // Returns "TABLE_Table1"
ParentObject(TABLE_Table1)      // Returns "WIN_Window2"
ParentObject(WIN_Window2)    // Returns "WIN_Window1"
ParentObject(WIN_Window1)    // Returns ""
WEBDEV - Server codeAjax
// COL_Column1 is in TABLE_Table1, which is in the PAGE_Page1 page
ParentObject(COL_Column1)    // Returns "TABLE_Table1"
ParentObject(TABLE_Table1)      // Returns "PAGE_Page1"
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 found 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 (with or without quotes)
Name of the object (control, window, page, column) whose parent must be found. A WLanguage error occurs if the object is unknown.
Remarks
WINDEVUser code (UMC)

ParentObject and the MDI windows

ParentObject used on a window opened from a MDI child window returns the alias of the MDI child window.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment