GetFirstSheet PowerScript function
Description
Obtains the top sheet in the MDI frame, which may or may not
be active.
Controls
MDI frame windows
Syntax
|
1 |
<span>mdiframewindow</span>.<span>GetFirstSheet</span> ( ) |
|
Argument |
Description |
|---|---|
|
mdiframewindow |
The MDI frame window for which you want |
Return Values
Window. Returns the first (top) sheet in the MDI frame. If
no sheet is open in the frame, GetFirstSheet returns
an invalid value. If mdiframewindow is null, GetFirstSheet returns null.
Usage
To cycle through the open sheets in a frame, use GetFirstSheet and GetNextSheet.
Do not use these functions in combination with GetActiveSheet.
Did GetFirstSheet return a validwindow?
Use the IsValid function to find out if
the return value is valid. If it is not, then no sheet is open.
Examples
This script for a menu selection returns the top
sheet in the MDI frame:
|
1 |
window wSheet |
|
1 |
string wName |
|
1 |
wSheet = ParentWindow.<span>GetFirstSheet</span>() |
|
1 |
IF IsValid(wSheet) THEN |
|
1 |
// There is an open sheet |
|
1 |
wName = wsheet.ClassName() |
|
1 |
MessageBox("First Sheet is", wName) |
|
1 |
END IF |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest