Hello.
This is my first post. I´m from Portugal.
I´m also new at Corona. I´m just now trying some portions of code, to test what i can do… later make a more complex app.
Huge problem: How can ask the user, to input a number like for example -1.2344 …
I´m trying to convert to number from a
defaultField1 = native.newTextField( 210, 200, 150, 30)
defaultField1 :addEventListener( “userInput”, textListener )
numValue = tonumber(defaultField1.text)
it seens tha the numValue is not workink, for example if later enter at textfield “10” and somewhere put a IF zz==10 don´t recognize as number 10 to compare…
Also tried to put .inputType = “number” but it opens numeric keybord but dont acept negative or decimal key, and this two keys are showned…
Is there someway to the user tap in a field, the program recognize the entered value, and store it in a variable??
Thanks.