dictionary 関数

以下の任意の関数を呼び出す場合、関数名を辞書名で修飾します。以下の例では、辞書名は row です。
  if (row.containsKey(age))
    ; 
  end

以下の関数を使用できます。

表 1. dictionary 関数
Function 説明
result = dictionaryName.containsKey (key) 指定したストリングが辞書内のキーであるかどうかを示します。
keys = dictionaryName.getKeys() ストリングの配列 (各ストリングは辞書内のキーになっている) を戻します。
values = dictionaryName.getValues() 辞書内の名前/値ペアの値部分を戻します。
dictionaryName.insertAll (sourceDictionary) ある辞書から別の辞書へ「キー/値」エントリーをコピーします。
dictionaryName.removeAll() 辞書内のすべての「キー/値」エントリーを除去します。
dictionaryName.removeElement (key) 指定のキーに関連付けられたエントリーを除去します。
result = dictionaryName.size () 辞書内の「キー/値」エントリーの数を戻します。

フィードバック