Iam using Margaret's new db class module and it is fantastic I do have a query though I would like to calculate a field from my database file.
e.g each day i enter how many calories burnt during exercise.
I would like to have a label that display's the total no. of calories burnt.
How would i go about coding this?
should i use the
function or the
function
So something like:
I hope this makes sense It's late and my eyes hurt haha
I've been searching for 8hrs now and i'm not quite finding an answer to my question. (I probably have found the answer I just don't know it being a noob lol)
e.g each day i enter how many calories burnt during exercise.
I would like to have a label that display's the total no. of calories burnt.
How would i go about coding this?
should i use the
B4X:
db.getfield("name")
B4X:
db.PullList(dbFields() As String, Filter As String)
So something like:
B4X:
Sub CalorieTotals
Dim Cal As List
Dim Value As String
Cal = db.PullList(Array As String("Calories"))
For each Value + next value in list
I hope this makes sense It's late and my eyes hurt haha
I've been searching for 8hrs now and i'm not quite finding an answer to my question. (I probably have found the answer I just don't know it being a noob lol)