Android Question variable string problem

sorom

Member
Licensed User
Longtime User
hi erel
I have a problem with string variables, string define myself when I assign a numeric value changes the variable type to int




imagen.jpg
 

Reviewnow

Active Member
Licensed User
Longtime User
This should work

B4X:
if isnumber(tcliente.text) = true then
cliente = numberformat(tcliente.text,0,0)
else
cliente = tcliente.text
end if
 
Upvote 0
Top