01-18-2012 06:01 PM
I need a sequence to close all sequence files. I was hoping to find an engine method like "CloseAllSequenceFiles". Unfortunately, this method doesn't exist. Any ideas on how I can accomplish this?
Thanks,
Steve
Solved! Go to Solution.
01-18-2012 09:38 PM
Send a UIMessage with the code UIMsg_CloseWindows for the event code.
Engine.PostUIMessage ( executionParam, threadParam, eventCode, numericDataParam, stringDataParam, activeXDataParam, synchronous)
You can pass NULL for the execution, thread.
01-19-2012 03:30 PM
Thanks, You've certainly pointed me in the right direction.
The only problem remaining is that I can't give the users the option to save the open sequence files. I need the sequence to have the ability to close all sequence files without offering the user a chance to save the file or any other confirmation. The sequence needs to just close all the sequences with no questions asked.
Any Ideas on how to temporarily disable all of the questions?
01-20-2012 10:30 AM
Hi JoeTestEngineer,
Do you want the file to close automatically and have nothing saved or do you want it to close automatically and save everything as well?
Regards,
Perry S.
01-20-2012 10:58 AM
I want the files to close automatically and have nothing saved and no confirmations.
01-23-2012 11:04 AM
If you are writing your own UI using the teststand UI controls you can implement or change the implementation of the the ApplicationMgr.QueryCloseSequenceFile() event handler. There is no way to modify the behavior of the sequence editor to do what you are asking that I am aware of.
Hope this helps,
-Doug
01-23-2012 05:35 PM
This works great.....
Thanks,
Steve