12-17-2005 08:48 AM
12-19-2005 09:41 AM
Hi Priya,
Try the global DIAdem error handling that I just posted for you for the OLE Automation case-- it may well work in this scenario also, since it is not limited in scope to either the calling script or the ScriptStarted() script.
I am much more familiar with the native VBScript "On Error" error handling, so I'm not certain if the global DIAdem error handling will work for you, but it should, as this used to be all there was in older versions of DIAdem before VBScript was tha automation language. I vastly prefer to use ScriptInclude() so that the subroutines refereced execute in the parent script's scope, but this does require that the referenced code be created as a series of functions or subroutines, as opposed to having the code directly in the called script. You may not have that kind of influence over your users.
Regards,
Brad Turpin
DIAdem Product Support Engineer
National Instruments