getMapKeys()

概要

TableID のキーが返される names list をクリックします。 を返します。 指定された tableID のマップがない場合は NoValue をクリックします。

"マップ" データ構造は "ハッシュ テーブル" または "ルックアップ テーブル" とも呼ばれ、defineMap()を使用して作成されます。

構文

getMapKeys ( tableID As Name ) As Boolean 
引数 [タイプ] 説明
tableID Name マップの name をクリックします。 以前に defineMap() で作成されている必要があります。

例 1

この例では、マップを定義し、2 つの値を設定し、リセットせずにマップを再定義し、マップのキーと値を取得し、最後にマップ値を削除します。
Intent >defineMap(:myMap)
--> True
Intent >setMapValue(:myMap, :myStringValue, "A String")
--> True
Intent >setMapValue(:myMap, :myIntegerValue, 123)
--> True
Intent >defineMap(:myMap, reset? := False)
--> True
Intent >getMapKeys(:myMap)
--> {:myStringValue, :myIntegerValue}
Intent >getMapValue(:myMap, :myStringValue)
--> "A String"
Intent >getMapValue(:noMap, :noValue)
--> NoValue
Intent >deleteMapValue(:myMap, :myIntegerValue)
--> True
Intent >getMapValue(:myMap, :myIntegerValue)
--> NoValue