06-05-2008 07:43 AM
06-06-2008 09:10 AM
Dave,
Could you add the SeqContext parameter, but ignore it if it's zero? Then non-TestStand uses could just pass in a zero and it would ignore the TestStand specific code that makes the dialog modal to the TestStand execution it was called from. Another way might be to create two versions of the function, one for TestStand that includes the SeqContext, and one for non-TestStand use, and that one statically sets the SeqContext to zero and ignores the TestStand modal functions. This method is similar to the many of the 'FunctionName' and 'FunctionNameEx' functions that allow for different uses of the same functionality (although all the examples I tried looking for where examples of obsolete (deprecated) functions).
I can't think of any other way you could do this without adding parameters.
-Jack