I'm developing my first app for mobile...after a great sweating, now I can test my app on my mobile device.
The problem I have is that i need to create a native text input but it didn't appear, so i inserted an answer popup to debug if the opencard script was running but it seems not.
On my first card i have this code:
Code: Select all
on openCard
if the environment is "mobile" then
answer "mobile"
--crea Numero Filiera
mobileControlCreate "input","numeroFilieraMob"
put the rect of button "numero" into AndroNumeroFiliera
mobileControlSet "numeroFilieraMob","rect", "130,116,354,168"
mobileControlSet "numeroFilieraMob","keyboardtype","numeric"
end if
end openCard
So i copied the code to the stack
Code: Select all
on openStack
set the text of field "numero" to empty
if the environment is "mobile" then
answer "mobile"
--crea Numero Filiera
mobileControlCreate "input","numeroFilieraMob"
put the rect of button "numero" into AndroNumeroFiliera
mobileControlSet "numeroFilieraMob","rect", "130,116,354,168"
mobileControlSet "numeroFilieraMob","keyboardtype","numeric"
end if
end openStack
What's wrong with my code?