I work throught the BMI calculator. It works on my Mac as a standalone app and in development mode, but on my Samsung J1 the Calculate Button won't print the results:
The error is
Code: Select all
function getBMI pHeight, pWeight
answer "Arriva alla funzione"
put "link to api I cannot post" & \
"height_in_m=" & pHeight & "&weight_in_kg=" & pWeight into tURL
put url tURL into tJSON
answer tJSON
put JsonImport(tJSON) into tArray
answer tArray["result"]["value"]
return round(tArray["result"]["value"])
end getBMI
Is a bug? Someone can help?
**EDIT** It won't work neither on Mac. It work only in development mode.....can be LiveCode 9 problem? I installed yesterday....