10-06-2011 06:11 PM - edited 10-06-2011 06:12 PM
Hi all,
Does anyone know how to get the File Properties Sequence File Globals setting pragmatically? I can get most of the other settings from the Sequence File pragmatically, but this one is eluding me. I'm using TestStand v4.2.1
-Jack
Solved! Go to Solution.
10-07-2011 06:07 AM
Hi Jack,
It seems there is no "real" API call for this available,
but you may access the Data Object...
just use this:
Statement:
RunState.SequenceFile.Data.SFGlobalsScope = 1
API:
SequenceFile.Data.AsPropertyObject().SetValNumber("SFGlobalsScope",1)
Regards
Juergen
10-11-2011 07:41 AM
Thanks Juergen!
Your response got me pointed at what I needed, which was to get the value:
int sfGlobalsScope = (int)args.SeqFile.AsPropertyObjectFile ().Data.GetValNumber ("SFGlobalsScope", 0);
Thanks again for your help!
-Jack