Topic: How to handle a value with decimal places in SQL
How to handle a value with decimal places, coming from a form field, which uses a comma as a separator, in an SQL statement.
rIndice := form1.Edit_valor.Value;
cbo_status := sqlexecute(
' select id_tbl_status from tbl_referencias where '+
' id_tbl_situacao = 1 and id_tbl_parametros = 1 and '+
' CAST(REPLACE("'+floattostr(rIndice)+'", ",", ".") AS REAL) '+
' between minimo and maximo');