hashTableObj.get
hashTableObj.get メソッド
説明
キーが存在していれば対応する値を返します。キーがないなら、デフォルトによる項目の値を返します。
public string get( string key, string default_value );
Public Function [get](ByVal key As String, ByVal default_value As String) As String
サンプル
コード
Dim _map As mapObj = New mapObj("") Dim _hashtable As New hashTableObj Dim _key As String _map.setConfigOption("PROJ_LIB", "c:\ms4w\proj\nad\") _hashtable = _map.configoptions _key = _hashTable.get("PROJ_LIB", "Nothing") Debug.WriteLine(_key) _key = _hashtable.get("PROJ_LIBB", "Nothing") Debug.WriteLine(_key) →結果 c:\ms4w\proj\nad\ キーがあった場合 →結果 Nothing キーがなかった場合
マップファイル
影響なし
Keyword(s):
References:[hashTableObj メンバ]