Not able to close DOORS from VB6

Discussion, problems and solutions relating to the Doors eXtension Language

Not able to close DOORS from VB6

Postby kviveksharan » Fri Dec 18, 2009 5:48 am

Dear All,

I am not able to close DOORS from VB6. I called a dxl from vb using
Code: Select all
"Doorsobject.runFile (dxlFilePath & "\exit.dxl")"
which has
Code: Select all
"exit_"
but its not executing. So I am killing DOORS exe. Because of killing DOORS exe next time when I open the same modules they are getting locked.

Can you guys please give a solution to close DOORS from vb6.

Thanks,
Vivek
kviveksharan
Junior Member
 
Posts: 13
Joined: Fri Nov 07, 2008 9:16 am

Re: Not able to close DOORS from VB6

Postby kviveksharan » Thu Dec 24, 2009 10:52 am

I got the solution just by calling a function which is in a module in vb6.

Code: Select all
Public Function ExitDoors()
Doorsobject.runFile (dxlFilePath + "\Unlock.dxl")
End Function


In dxl file i have one line
Code: Select all
eval_("exit_()")


If you put the function in Form_Unload the dxl is not getting executed, so in the Form_Unload call the function from Module then DOORS gets closed using vb6. Another way of closing DOORS from VB6 is "sendkeys" but it should be last option as it is not reliable in all cases.

Hope this will help you :D
kviveksharan
Junior Member
 
Posts: 13
Joined: Fri Nov 07, 2008 9:16 am


Return to DXL Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron