nazari.xxx Member Sep 19, 2023 #1 Hello. How can I count number from from database? For example I get 59632485 from SQLite then I can show count 8 Or 59632485 -»8
Hello. How can I count number from from database? For example I get 59632485 from SQLite then I can show count 8 Or 59632485 -»8
Erel B4X founder Staff member Licensed User Longtime User Sep 20, 2023 #2 B4X: Dim s As String = YourNumber Log(s.Length) Upvote 0
aeric Expert Licensed User Longtime User Sep 20, 2023 #3 Get length of a value using SQL query? B4X: Private Sub Query Dim RS As ResultSet = SQL1.ExecQuery("SELECT Length(59632485)") Do While RS.NextRow Log(RS.GetInt2(0)) Loop RS.Close End Sub Upvote 0
Get length of a value using SQL query? B4X: Private Sub Query Dim RS As ResultSet = SQL1.ExecQuery("SELECT Length(59632485)") Do While RS.NextRow Log(RS.GetInt2(0)) Loop RS.Close End Sub
imbault Well-Known Member Licensed User Longtime User Sep 20, 2023 #4 aeric said: Get length of a value using SQL query? B4X: Private Sub Query Dim RS As ResultSet = SQL1.ExecQuery("SELECT Length(59632485)") Do While RS.NextRow Log(RS.GetInt2(0)) Loop RS.Close End Sub Click to expand... Hello, that statement should work as well Upvote 0
aeric said: Get length of a value using SQL query? B4X: Private Sub Query Dim RS As ResultSet = SQL1.ExecQuery("SELECT Length(59632485)") Do While RS.NextRow Log(RS.GetInt2(0)) Loop RS.Close End Sub Click to expand... Hello, that statement should work as well