Reputation: 11
I have a series of steps say 1-10 and some of the steps repeat multiple times. I am able to record the time stamp do some simple calculation and write it into a text file at the steps where I want but the problem is when the same step repeats again it is recording it again. How can I record this timestamp only once at the start of the step and not record again when the step repeats?
Thank you!
Upvotes: 1
Views: 269
Reputation: 1589
You haven't provided many details so the answer might be not relevant. As an option, you can use a flag variables declared somewhere outside of your steps. For example for step one:
Private Step1Called As Boolean
Later, when you enter your step number 1 you can add something like this, where RecordTimeStamp is a function creating and manipulating your timestamp:
If Not Step1Called Then
RecordTimeStamp
Step1Called = True
End If
Upvotes: 1