Page 1 of 1

Won't run [RESOLVED]

Posted: Mon Jul 17, 2017 7:45 am
by codelessfuture
Hi. I'm following the interactive welcome because I'm trying to evaluate LiveCode for Mobile development.

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
The error is in put JsonImport(tJSON) into tArray because the next alert don't appear on my phone but give correct result on Mac app and development mode.....

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....

Re: Won't run

Posted: Mon Jul 17, 2017 8:36 am
by Thierry
Hi,

You've probably missed to include JSON library
in your Application settings (4th icon from the left - Inclusions)



HTH,

Thierry

Re: Won't run

Posted: Mon Jul 17, 2017 9:45 am
by LiveCode_Panos
Hi,

And note that if the "Inclusions" pane is disabled, you can enable it by:

1. Go to "General" pane
2. Choose "Select Inclusions for the standalone application"

Best,
Panos
--

Re: Won't run

Posted: Mon Jul 17, 2017 7:27 pm
by codelessfuture
Thank you.

I have had to include also internet.