質問編集履歴
4
誤字修正 DB型からDT型 (DataTable)
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
SQLから取得したレコード順にD
|
1
|
+
SQLから取得したレコード順にDT型からHashtable型に格納したいです。
|
test
CHANGED
File without changes
|
3
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,10 +68,6 @@
|
|
68
68
|
|
69
69
|
For x As Integer = 0 To dtStorage.Rows.Count - 1
|
70
70
|
|
71
|
-
'初期化処理
|
72
|
-
|
73
|
-
htStorage = New Hashtable
|
74
|
-
|
75
71
|
'取得した行のカラム数分回す
|
76
72
|
|
77
73
|
For y As Integer = 0 To dtStorage.Columns.Count - 1
|
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,11 +40,11 @@
|
|
40
40
|
|
41
41
|
現在の結果
|
42
42
|
|
43
|
-
0列目Key=|age|
|
43
|
+
0列目Key=|age| Value=|21|
|
44
44
|
|
45
|
-
1列目Key=|sex|
|
45
|
+
1列目Key=|sex| Value=|男|
|
46
46
|
|
47
|
-
2列目Key=|name|
|
47
|
+
2列目Key=|name| Value=|田中|
|
48
48
|
|
49
49
|
|
50
50
|
|
@@ -65,8 +65,6 @@
|
|
65
65
|
Dim htStorage As New Hashtable
|
66
66
|
|
67
67
|
|
68
|
-
|
69
|
-
'取得した行数分回す
|
70
68
|
|
71
69
|
For x As Integer = 0 To dtStorage.Rows.Count - 1
|
72
70
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
DBからレコードを取得しDataTa
|
5
|
+
DBからレコードを取得しDataTable型の変数に入れたのち、Key=カラム、Value=列の値で
|
6
6
|
|
7
7
|
Hashtableを作成したのですが、Hashtableにレコードの順(Select文の結果順)で値が
|
8
8
|
|