Home » U++ Library support » U++ SQL » Can not get a double from database
Can not get a double from database [message #17889] |
Mon, 01 September 2008 20:48  |
kbyte
Messages: 87 Registered: July 2008
|
Member |
|
|
Hi,
I am trying to get a double (I think) from a sqlite3 database but I see a bad number. Ints and Strings no problem.
Here the code:
if(!SQL.Execute(Format("Select sum(ammount) from Pags where Num_Cli_Pag=%d",nNumCli)))
{
PromptOK("Error!");
}
if(!SQL.Fetch())
{
edDeb.SetData("0");
}
else
{
double d=(double)SQL[0];
strTemp=Format("%f",d);
edDeb.SetData(strTemp);
}
What am I doing wrong?
Thank you
Alex
|
|
|
|
|
|
|
Goto Forum:
Current Time: Wed Jun 18 07:15:16 CEST 2025
Total time taken to generate the page: 0.04503 seconds
|