I am reading data from a SQLite database and displaying in a WebView.
Is it possible to format the number?
eg.
format 38805.5 TO 38,805.00
I am using the following code to query the SQLite table and display in the WebView:
Another problem I have is that if a number is large, it displays as:
3.17888e+06
Is it possible to format the number?
eg.
format 38805.5 TO 38,805.00
I am using the following code to query the SQLite table and display in the WebView:
B4X:
Sub ShowSalesBySalesPerson(MyStart As String, MyEnd As String)
Dim Query As String
Query = "SELECT DISTINCT(Sales_Person) As [Sales Person], Store AS [Store], SUM(Units_Sold) As [Units Sold], SUM(Total_Retail) As [Total Retail] FROM sales_end_user WHERE Sale_Date BETWEEN '" & MyStart & "' AND '" & MyEnd & "' GROUP BY Sales_Person ORDER BY Store"
wbvQuery.LoadHtml(ExecuteHtml(SQL1, Query, Null, 0, True))
wbvQuery.Visible=True
End Sub
Another problem I have is that if a number is large, it displays as:
3.17888e+06
Last edited: