F Fox Active Member Licensed User Longtime User Apr 12, 2011 #1 How can i show the number of records of an Database in an label?
Erel B4X founder Staff member Licensed User Longtime User Apr 12, 2011 #2 B4X: Label1.Text = "Number of records: " & SQL.ExecQuerySingleResult("SELECT count(*) FROM table") Upvote 0
F Fox Active Member Licensed User Longtime User Apr 12, 2011 #3 Sorry Erel i mean how you can i show on wich position is the entry in the table. That was what i mean sorry for my wrong question. Last edited: Apr 12, 2011 Upvote 0
Sorry Erel i mean how you can i show on wich position is the entry in the table. That was what i mean sorry for my wrong question.
F Fox Active Member Licensed User Longtime User Apr 12, 2011 #5 I mean the row or colum position in the database Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 13, 2011 #6 There is no inherent meaning for such position in a database. You can add a column that will behave as the row id and then show its value. Upvote 0
There is no inherent meaning for such position in a database. You can add a column that will behave as the row id and then show its value.
M Merlot2309 Active Member Licensed User Longtime User Apr 13, 2011 #7 Hello, When I understand you correctly the following should work: Sub ListView_ItemClick (Position As Int, Value As Object) ToastMessageShow(Position, True) End Sub Counting starts at zero. This only works for rows in a ListView. Helen. Upvote 0
Hello, When I understand you correctly the following should work: Sub ListView_ItemClick (Position As Int, Value As Object) ToastMessageShow(Position, True) End Sub Counting starts at zero. This only works for rows in a ListView. Helen.