Dim dd As Currency
WebTextField.Text=“1,456.98”
dd=val(WebTextField.Text)
dd it return 1.0 and no 1456.98
way
Dim dd As Currency
WebTextField.Text=“1,456.98”
dd=val(WebTextField.Text)
dd it return 1.0 and no 1456.98
way
Probably the comma in the text confused the val()
function.
Use CDbl instead of Val.
thanks tim
Tim no Works
Dim vTiendaRep as Currency
vTiendaRep=CDbl(TxtTiendaRep.Text)
Thanks
i found the Problem
is Working now
Hi
What is the best practice use Currency or Double and on the data base use the same if i use double on Xojo use Double on the DB ?