How to make a phone call in the mobile application

Although Appeon PowerServer provides no APIs to call a phone number within the mobile application, you can still implement it using the following code (effective for both iOS and Android applications):

inet l_inet
string ls_code, ls_protocol
int rc

ls_code = "800-555-1212"
ls_protocol= "tel:"

rc = messagebox (ls_code~r~n, 'Dial it?', question!, yesno!, 1)

if rc = 1 then 
   l_inet = create inet
   l_inet.hyperlinktourl ( ls_protocol+ls_code )
   Destroy l_inet
end if