Tried your code but I always got error.
sambomb wrote:Change the name of the var, nTest_Decimals := 3
#include "fivewin.ch" procedure start() Local nTest_Decimals := 3 oSQLite := TSQLiteServer():New( "test.sql" ) If oSQLite:lError msgStop( "error" ) RETURN EndIf cQuery:="SELECT * from t_tables;" oQry:=oSQLite:Query(cQuery) nTest_Decimals :=oQry:aData[1,7] oQry:End() oSQLite:End() msginfo(nTest_Decimals ) && return 3 msginfo(valtype(nTest_Decimals )) && return N msginfo(str(88.456,10,3)) && return 88.456 msginfo(str(88.456,10,nTest_Decimals )) && RETURN 88 !!! return function gettemppath() return("")
Best Regards,
Marco Turco
SOFTWARE XP LLP
Marco Turco
SOFTWARE XP LLP