CdbrVariableArray::SetValueメソッド

機能

値の設定

形式

//Boolean型の場合
DmaBoolean SetValue(DmaIndex32 iIndex, DmaBoolean    bNewValue)
//ID型の場合
DmaBoolean SetValue(DmaIndex32 iIndex, DmaId&        rNewValue)
//Integer32型の場合
DmaBoolean SetValue(DmaIndex32 iIndex, DmaInteger32  lNewValue)
//String型の場合
DmaBoolean SetValue(DmaIndex32 iIndex, pDmaString_T  pNewValue)
//複合データの場合
DmaBoolean SetValue(DmaIndex32 iIndex, CdbrCompound& rNewValue)

詳細

iIndexに指定した位置の要素に値を設定します。

引数

iIndex(入力)

設定する要素の位置を,0~(要素数-1)の値で指定します。範囲外の値を指定した場合,エラーになります。

bNewValue,lNewValue,pNewValue,rNewValue(入力)

設定する値を指定します。指定した値の型と要素の型が一致しない場合はエラーになります。

戻り値

DMA_TRUE  正常終了

DMA_FALSE 異常終了

戻り値の詳細

なし