Page 1 of 1
android: add calculator in data entry
Posted: February 7th, 2016, 11:28 pm
by maria
good day everyone! i would liketo ask how to call the calculator using execsys function. thank you very much.
Re: android: add calculator in data entry
Posted: February 8th, 2016, 1:00 pm
by MARIA
HALLO:
Execsystem("c:\windows\calc.exe");
Re: android: add calculator in data entry
Posted: February 9th, 2016, 4:44 am
by josh
This function should work on Android in addition to Windows:
// Launch the calculator
function showCalculator()
if getos() in 10:19 then
// Windows
execsystem("calc.exe");
else
// Android - different devices have different built in calculators.
// Samsung uses app:com.sec.android.app.popupcalculator,
// LG and HTC use app:com.android.calculator2.
// We will try one and if it doesn't work then try the other.
if execsystem("app:com.sec.android.app.popupcalculator") <> 1 then
if execsystem("app:com.android.calculator2") <> 1 then
errmsg("Unable to launch calculator.");
endif;
endif;
endif;
end;