computergeek
Programmer
Hello,
The process I am working on loops through an array of windows contained within a PBL. It passes the window name to a function to perform some more processing. If the windowtype is not MAIN! (ie. Child!, Response!) then I want to skip this window... HOW do I easily retrieve the Windowtype property of a Window? Do I have to open the window?
// NOTE: as_window is passed to this function as a string
// Open current window
// This does not work... If this is a Response window
// it waits for a "response" before going to the next
// statement which checks the window type. This window
// closes ... and windowtype property on the next statement
// cannot be determined?!
Open(lw_window, as_window)
if lw_window.WindowType <> Main! then
Close(lw_window)
Return -1
// Return of -1 means skip this window return -1
else
Close(lw_window)
if (as_window <> iw_frame.ClassName ()) then // ClassName returns name of window
openSheet (lw_window, as_window, iw_frame)
else
lw_window = iw_frame
end if
end if
Thanks,
Computergeek
The process I am working on loops through an array of windows contained within a PBL. It passes the window name to a function to perform some more processing. If the windowtype is not MAIN! (ie. Child!, Response!) then I want to skip this window... HOW do I easily retrieve the Windowtype property of a Window? Do I have to open the window?
// NOTE: as_window is passed to this function as a string
// Open current window
// This does not work... If this is a Response window
// it waits for a "response" before going to the next
// statement which checks the window type. This window
// closes ... and windowtype property on the next statement
// cannot be determined?!
Open(lw_window, as_window)
if lw_window.WindowType <> Main! then
Close(lw_window)
Return -1
// Return of -1 means skip this window return -1
else
Close(lw_window)
if (as_window <> iw_frame.ClassName ()) then // ClassName returns name of window
openSheet (lw_window, as_window, iw_frame)
else
lw_window = iw_frame
end if
end if
Thanks,
Computergeek