Skip to content
Start free evaluation

pdcomm::formattedProgramQueryCommandCode

Function

Returns the CCODE of one command of a returned program.

inline SecsItem formattedProgramQueryCommandCode(const GemResult &result, size_t index)

Declared in: #include <pdcomm_gem_formatted_program_queries.hpp>

Parameters

NameDescription
resultFormatted program request result whose answer contains a program.
indexZero-based command position.

Returns

An independently owned item.

Notes

  • Throws pdcomm::Error: PDCOMM_INVALID_STATE when no program is present; PDCOMM_OUT_OF_RANGE for an invalid index.