07-17-2012 03:47 AM
Start a sequence by using a batch file and add command line arguments. Example: "MySequence.seq Arg1".
Now, within the sequence I would like to read that first (and other) argument "Arg1"
There is an ActiveX step for this, giving back a type Strings (Object Reference), see screenshot.
Question: How do I use this reference to read the argument?
Solved! Go to Solution.
07-17-2012 08:32 AM
Honestly I don't think you are using this correctly. I think your application manager in your UI should be handling this. However, to answer your question:
According to the TestStand help the property CommandLineArguments is of type Strings. This is from the TestStand help as well:
Strings
A collection of strings. You can obtain a reference to the collection from the ApplicationMgr.CommandLineArguments property, the ExpressionEdit.GetValidEvaluationTypes, and ExpressionEdit.SetValidEvaluationTypes methods, and the ApplicationMgr.ProcessUserCommandLineArguments event.
Properties
Count (Read Only)
Item
Methods
Add
Clear
Insert
Remove
Looks like you can use more activeX steps to use the Item or Count properties to retrieve a single argument.
Hope this helps,
07-18-2012 10:04 AM
Thanks Jigg. This helped a lot.