Question : Detect whether a document is currently being opened?

Hi,
I have 3 forms,ie. parentdoc, firstchild, secondchild.
The firstchild doc & secondchild doc are response documents to the parentdoc.
In firstchild doc, I can get the unid of parentdoc, and detect that whether the parentdoc is currently opened (through IsUIDocOpen property).
However, I can't detect whether the secondchild doc is opened by using its unid.
Why? Is it because parentdoc is document, but secondchild doc is a reponse document, so I can detect whether it's opened?

Please enlighten me if you know.
Thanks in advance.

Answer : Detect whether a document is currently being opened?

Get the handle of the first doc.

Set the document collection using doc.Responses from the first doc.

Check the collection is not more than one(to make sure that you are referring to the child of the first response that is obviously the second doc.

Get the dc.Getfirstdocument to set the second doc.

Now use the isuidocopen to check wether the second doc is opened....

Hope this is of some help to proceed your issue.

:-)
Random Solutions  
 
programming4us programming4us