Hi @engilic
If were talking about a VBA UserForm here, it has a 'hidden' property called Visible that returns a Boolean. Checking its value will likely only work if your form was shown as non-modal (so that it can be open in the background while allowing you to interact with other things). To check it, just use a simple If...Then statement, and after If put the name of the Form (without quote marks), as if it were an object variable, then a dot (.), then Visible, then your Then. So if your UserForm is named MyForm, the line would look something like this:
If MyForm.Visible Then
Call MsgBox("The form is open", , "")
Else
Call MsgBox("The form is closed.", , "")
End If
As for a regular iLogic Form (local or Global), I don't think I've ever seen any kind of built-in property or method for checking if it is open. One trick I've seen others use is something like a SharedVariable with a Boolean value, and when they launch the form, create the variable and give it a value of True, and when they close the form, either just change the variables value to False, or delete the variable.
If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.
If you want and have time, I would appreciate your Vote(s) for My IDEAS 💡or you can Explore My CONTRIBUTIONS
Wesley Crihfield

(Not an Autodesk Employee)