API version 1
- ‐
getAllKeys¶
格納されている全てのキーを返します。
呼出形式一覧
呼出形式 |
説明 |
---|---|
CRS::Common::Core::String[] getAllKeys() |
格納されている全てのキーをString配列で返します。 |
戻り値一覧
戻り値 |
説明 |
---|---|
CRS::Common::Core::String[] |
全てのキーのString配列 キーが一つも格納されていない場合、空のString配列を返します。 |
例外
なし
使用例
CRSダウンロード
Form ProfileStore {
x = 0;
y = 0;
width = 800;
height = 600;
var pros = new ProfileStore( app ) ;
pros.setValue("abcd" , 12 ) ;
pros.setValue("xyz" , 32 ) ;
print("abcdキーは ? ",pros.hasKey( "abcd") ) ;
var keys = pros.getAllKeys( ) ;
var size = keys.length ;
print("pros.length=", size);
for (var i=0;i< size;i++ ) {
print(i," ",keys[i] );
}
print("abcdキーは ",pros.getValue("abcd" ) ) ;
pros.removeKey("abcd" ) ;
print("removekey後は ",pros.getValue("abcd" ) ) ;
print("xyzキーは ",pros.getValue("xyz" ) ) ;
pros.removeAll( ) ;
print("removeall後は ",pros.getValue("xyz" ) ) ;
}