6月18日設置
Posted by No Name Ninja - 2007.07.22,Sun
Private Function hogeHashTable() As Boolean
Dim ht As Hashtable
Dim strKey As String
Dim strArray As String()
Dim strVal As String
ht = New Hashtable
strKey = "01"
strArray = New String() {"japan", "nippon"}
ht.Add(strKey, strArray)
strKey = "02"
strArray = New String() {"pen", "enpitsu"}
ht.Add(strKey, strArray)
If ht("01") Is Nothing Then
Else
strVal = CType(ht("01"), Array)(0) 'japan
strVal = CType(ht("01"), Array)(1) 'nippon
End If
If ht("02") Is Nothing Then
Else
strVal = CType(ht("02"), Array)(0) 'pen
strVal = CType(ht("02"), Array)(1) 'enpitsu
End If
End Function
連想配列。結構使える。PR
Comments
Post a Comment
カレンダー
カテゴリー
フリーエリア
最新コメント
[05/16 backlink service]
最新記事
(09/18)
(11/17)
(10/03)
(07/21)
(07/20)
最新トラックバック
プロフィール
HN:
No Name Ninja
性別:
非公開
ブログ内検索
最古記事
カウンター
アクセス解析
Template by mavericyard*
Powered by "Samurai Factory"
Powered by "Samurai Factory"
