I am currently running a small VB application (started from within Microstation)to process some files. At the end of this processing loop I want to close the last design file so it takes me back to the "Microstation Manager" dialog box. I have tried the following:
Set msapp = CreateObject("Microstation.application")
Set mspoint = msapp.mbepoint
msapp.mbesendcommand "close design"
This seems to work, But the VB application stalls then returns a runtime error '7' - Out of Memory.....
I am fairly new to VB so it is quite possibly a case of me doing something wrong....OR Is there a different way to approach this....????
Any Help greatly appreciated
Thanks
Darren D.
Set msapp = CreateObject("Microstation.application")
Set mspoint = msapp.mbepoint
msapp.mbesendcommand "close design"
This seems to work, But the VB application stalls then returns a runtime error '7' - Out of Memory.....
I am fairly new to VB so it is quite possibly a case of me doing something wrong....OR Is there a different way to approach this....????
Any Help greatly appreciated
Thanks
Darren D.