Application.OpenForms

Posted by Roger Blanchard on 27-Feb-2013 18:03

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.

All Replies

Posted by Admin on 28-Feb-2013 01:26

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.

Posted by Roger Blanchard on 28-Feb-2013 06:12

Already have a call open with PTS. I will give the SESSION:FIRST-FORM a try.

Thanks for the comments.

Posted by Roger Blanchard on 28-Feb-2013 06:47

Mike,

I was able to do what I need with SESSION:FIRST-FORM.

Thanks for the tip!!

This thread is closed