NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the comment of a step?

Hi!

In a C++ program I get a step with "step = currentSequence->GetStep(...)".
Then I wanna get some information from it.

With "step->GetName()" and "step->GetDescription()" I get the name and description of the step.

But how can I get the comment?

"GetComment()" doesn't exist.

Who can help me?

Thanks in advance.
0 Kudos
Message 1 of 3
(3,359 Views)
Hi TSNewbie,

You need to create a PropertyObject of the step
step->AsPropertyObject().
then with the property object the comment is made available and obtain using GetComment().
e.g. myStepPropObj->GetComment().

Not sure of the exact syntax but the mechanism correct.

Hope this help
Ray Farmer
Regards
Ray Farmer
Message 2 of 3
(3,358 Views)
Hi!

Thank you very much!!
It works.
0 Kudos
Message 3 of 3
(3,358 Views)