Sorry but, personally, I refuse to answer in a case like this.
(and maybe today I'm a little too nervous)
You create a Type, like this ...How can i add the data to a list so that each row in the list is a record from the result
Type sectionRec (id As Int, title As String, row As Int)
Public Sub getSections(pageId As Int) As List
Dim cur As ResultSet
Dim result As List
result.Initialize
cur = dB.ExecQuery(SQL_SELECT_SECTIONS & pageId & " ORDER BY Row")
Do While cur.NextRow
Dim s As sectionRec
s.Initialize
s.Id = cur.GetInt2(0)
s.title = cur.GetString2(1)
s.row = cur.GetInt2(2)
result.Add(s)
Loop
Return result
End Sub
Another option could be a LOM (list of maps). Each record is returned in a map (key = field; value = data) and each map is added to a list.
'Executes the query and returns a Map with the column names as the keys
'and the first record values As the entries values.
'The keys are lower cased.
'Returns an uninitialized map if there are no results.
No, the annual earthquake period is starting. I was not surprised and there will be one of at least 6.5 degrees in Italy within 15 days maximum.Is it because of the earthquake in Turkey and Greece?
?????