pdcomm::formattedProgramQueryCommandCode
Function
Returns the CCODE of one command of a returned program.
inline SecsItem formattedProgramQueryCommandCode(const GemResult &result, size_t index)Parameters
| Name | Description |
|---|---|
result | Formatted program request result whose answer contains a program. |
index | Zero-based command position. |
Returns
An independently owned item.
Notes
- Throws
pdcomm::Error:PDCOMM_INVALID_STATEwhen no program is present;PDCOMM_OUT_OF_RANGEfor an invalidindex.