TextBox text not being passed to event android

Hi i’m  having a bit of  an issue  and i can’t t see where i’m going  wrong. i have  a set of text boxes which are set to take in a decimal number.  and  a button  to carry out a tasks.

 when i click the  button  the values in the textboxes should be convert to decimal numbers and then the results  should be shown.

When i  assign a  decinal value to my integers in the  code my code works however  when i try and use the values if the text boxes it doe snot calculate anything at all.

local zmax = todecimal(ImpedanceAirResonancetextBox.text)

this however does not appear to place any value into zmax

any advise would be appriciated.

thanks dave

Is the todecimal() a function of yours?  Corona SDK/Lua has tonumber() but not a todecimal().

Rob

Thanks this was due to a find and replace to change the  keyboard option for the text box it  must have also change the tonumber to todecimal  as it appears that the number keyboard does not let you add decimals  and the decimal keyboard show up as   a qwerty .

i also seem to  have an issue with  my texboxes not being removed  when i switch tabs. i    do have a :removeSelf()  for each textBox

FreqBelowAirResonancetextBox:removeSelf()

 and this is in the

function scene:exitScene( event )
    local group = self.view

Well in principle that should be all you need to do to remove your boxes.  I would look to see if you’re getting any errors preventing your exitScene() from completing.

Rob

Should i add the texboxes to the group  as  in group:insert(DCResistanceofVoiceCoiltextBox)  or  is this  where i  have  went  wrong.

native.* objects cannot be added to Corona display groups.  They sit on top of the Corona SDK OpenGL canvas and do not intermix.

Rob

Is the todecimal() a function of yours?  Corona SDK/Lua has tonumber() but not a todecimal().

Rob

Thanks this was due to a find and replace to change the  keyboard option for the text box it  must have also change the tonumber to todecimal  as it appears that the number keyboard does not let you add decimals  and the decimal keyboard show up as   a qwerty .

i also seem to  have an issue with  my texboxes not being removed  when i switch tabs. i    do have a :removeSelf()  for each textBox

FreqBelowAirResonancetextBox:removeSelf()

 and this is in the

function scene:exitScene( event )
    local group = self.view

Well in principle that should be all you need to do to remove your boxes.  I would look to see if you’re getting any errors preventing your exitScene() from completing.

Rob

Should i add the texboxes to the group  as  in group:insert(DCResistanceofVoiceCoiltextBox)  or  is this  where i  have  went  wrong.

native.* objects cannot be added to Corona display groups.  They sit on top of the Corona SDK OpenGL canvas and do not intermix.

Rob