07-18-2007 02:45 PM
07-19-2007 02:29 AM
on error resume next
err.clear
datafileload "doesnotexist"
if err.number > 0 then msgbox err.number &":"& err.description &" in "& err.source
on error goto 0
07-19-2007 02:24 PM
Ingo,
Thank you for the explanation. I understand how it works now.
Jim
07-20-2007 10:50 AM
Hi Jim,
Since you're calling those VBScripts through ActiveX from LabVIEW, I would recommend that you continue to use the "AutoIgnoreError = 1" command in combination with the VBS commands Ingo suggested. It is safer to use AutoIgnoreError as well as the On Error VBS commands when you are running DIAdem through its OLE Automation server.
The AutoIgnoreError command disappeared from the DIAdem Help system, but it is still available and still works. Most people don't automate DIAdem from an external program, so we've been nudging users towards the VBS error checking commands.
Brad Turpin
DIAdem Product Support Engineer
National Instruments