ilogic to Close .idw file

ilogic to Close .idw file

tarik.janate
Participant Participant
495 Views
4 Replies
Message 1 of 5

ilogic to Close .idw file

tarik.janate
Participant
Participant

Hi,

 

is there any ideas on how to use ilogic to close an . idw file without saving it

 

Thank you in advance 🙂

0 Likes
Accepted solutions (1)
496 Views
4 Replies
Replies (4)
Message 2 of 5

aelqabbany
Advocate
Advocate

Try this:

Dim doc = ThisDoc.Document
doc.Close(True)
0 Likes
Message 3 of 5

tarik.janate
Participant
Participant

Capture.JPG

thanks for the replay. i tried it and it gave a msg box saying "Catastrophic failure"

 

 

 

0 Likes
Message 4 of 5

aelqabbany
Advocate
Advocate
Accepted solution

Try this:

Call New System.Threading.Thread(Sub() ThisDoc.Document.Close(True)).Start

 

0 Likes
Message 5 of 5

tarik.janate
Participant
Participant

Thank you aelqabbany

0 Likes