I want to add a step property to store my database ID for this step. This step property must be saved in the sequence file and the next time the sequence file is used the value written in this property must be available.
I used the following calls:
// to write the data
oleErrChk(TS_PropertySetValNumber (step, &errorInfo, "Step.MdBvar", TS_PropOption_InsertIfMissing, 1223));
// to read the data
oleErrChk(TS_PropertyGetValNumber (step, &errorInfo, "Step.MdBvar", 0, &dbID));
When I directly read the data after the write , the data is available!
However when I store the sequence file with the call:
oleErrChk(TS_SeqFileSave(gCurrentSequenceFile, &errorInfo,NULL));
And you look in this sequence file the data is actually there
, in the sequence file. However when I load the sequence file again and try to read this property with exactly the same call as used before the data is gone. Another strange thing is that when I load the file is TestStand and save the file the data is gone. It looks like the data is ignored by TestStand. How can I solve this problem. I don't want to use globals because this dbID is a property of that specific step.
I hope someone can help me.
Thanks in advance, greetings Maarten de Bree