(02-27-2019 03:44 AM)Jacob Wall Wrote: Quote:How do I go about making my program an app?
APPS key -- < Pick any App > -- [Save]
- Enter a name for your app
- Make sure to choose "None" as your base app
Now open Connectivity Kit, expand the Application Library and locate your app. Double-click will open the contents of your app. Under the program tab is your code, with a number of handy key assignment helpers already pre-inserted (just need to un-comment).
Now to get your program converted over, here is a quite simple example that you'll probably get the hang of pretty quick:
Code:
#pragma mode( separator(.,;) integer(h32) )
// list names of sub-routines at the top
RunMyApp();
MySubRoutine();
// declare global variables
MyGlobalVar:=1,OtherVar;
// what happens when the APP Start button is pressed
START()
BEGIN
MySubRoutine(99);
END;
// define the Symb key
Symb()
BEGIN
RunMyApp();
END;
// your program code
RunMyApp()
BEGIN
OtherVar:=MyGlobalVar+1;
MySubRoutine(OtherVar);
END;
MySubRoutine(mynum)
BEGIN
RECT_P();
TEXTOUT_P("Number is "+STRING(mynum),G0,5,5);
TEXTOUT_P("Any key to continue ...",G0,5,25);
WAIT(-1);
END;
Is there a way to save these kind of advices somewhere in this forum as documents?