B4J 9.8
BANano 7.37
I have a BANano custom view which, amongst other things, displays a text box. The value attribute of the text box contains an integer, default of 0
I get the BANano element with
So far so good. However when I execute the following...
the value attribute gets set to "01".
Running the same function again I get "011". Changing the input type to "number" made no difference.
So my int value of x is being treated as a string. Is this a bug or am I thinking wrong about this / missed something in the booklet?
BANano 7.37
I have a BANano custom view which, amongst other things, displays a text box. The value attribute of the text box contains an integer, default of 0
B4X:
<input Type="text" id="fname" name="fname" maxlength="2" size="2" style="border:none; text-align:center" value="0">
I get the BANano element with
B4X:
Dim fn As BANanoElement
fn.Initialize ("#fname")
So far so good. However when I execute the following...
B4X:
Dim x As Int
x = fn.GetAttr ("value")
x=x+1
fn.SetAttr ("value", x)
the value attribute gets set to "01".
Running the same function again I get "011". Changing the input type to "number" made no difference.
So my int value of x is being treated as a string. Is this a bug or am I thinking wrong about this / missed something in the booklet?