Does anyone know if you should be able to reference the Application:OpenForms collection?
I have tried using a CAST and it will actually kill the prowin32.exe thread when trying to compile.
I am trying to determine if the last form opened is modal (dialog box)
/* cast last form to Progress.Windows.Form */
oLastOpenedForm =
CAST (APPLICATION:OpenForms[iIndex],Progress.Windows.Form) NO-ERROR.
IF NOT APPLICATION:OpenForms[iIndex]:InvokeRequired THEN
MESSAGE
"Modal=" APPLICATION:OpenForms[iIndex]:Modal SKIP
"Name=" NOT APPLICATION:OpenForms[iIndex]:NAME
VIEW-AS ALERT-BOX.
I have tried using a CAST and it will actually kill the prowin32.exe thread when trying to compile.
Even with properly casing to Application class it kills my compiler on 11.1.0.005
How about looping from SESSION:FIRST-FORM ?
Tech support might want to see this too.
Already have a call open with PTS. I will give the SESSION:FIRST-FORM a try.
Thanks for the comments.
Mike,
I was able to do what I need with SESSION:FIRST-FORM.
Thanks for the tip!!