Post Reply 
Modular programming?
03-14-2019, 03:19 AM (This post was last modified: 03-14-2019 03:21 AM by mgmander.)
Post: #5
RE: Modular programming?
(03-10-2019 05:42 PM)grsbanks Wrote:  Yes, what you're asking can be done.

Before going any further, make sure your Prime is updated to the latest version, which is 14181 (2018 10 16), I think.

You then start by creating an app either derived from one of the baked-in apps or inheriting nothing at all. Let's say you call that app "MyFuncs" for argument's sake.

The programs in MyFuncs won't clutter up your list of programs but if they are "exported" (check out the EXPORT keyword) then they are accessible from any app by qualifying them: MyFuncs.ProgName()

Well, it turns out I did not ask my question properly or clearly enough, and in the end I was barking up the wrong tree anyway I suspect.

I was referring to programming on the Prime itself, and in the listing you get when you select "Shift-Program", I am getting all programs in all apps, and was wondering if there was some way of having programs that are only local to the currently selected app, and then only show when that app is the current one. For example, say I create a "Utilities" app that has some programs with general use functions that I might use in all programs. I was hoping that the program that defines and exports those functions might only show in said program listing when "Utilities" was the current app, but not show in the program list when a different app in the calculator was selected.

I did update my firmware, and in the process starting digging around the Connectivity Kit, and now see that one has the ability to edit one app-specific program, with functions that get called automatically when the app is started, and when various specific keys are pressed: Symb, Plot, Num etc. In the end, that is going to be far more useful for me I think.

That said, I would appear that there is no way of editing that app program shell on the calculator itself, unless I am missing something? So any work there needs to be done with the Connectivity Kit? I also presume there is only the one program that is linked with the app and that all code, at least code you want hidden from the general program menu, needs to reside there?

Anyway, before I ask any more questions, I am going to have to mull over how I can make that system work for me to keep things organized the way I want to. I actually think it will be fine in the end, except for the limitation of not being able to work on things in the field with only the Prime. I suppose I can edit and debug routines using the regular "global" program list, then when they're done, transfer the code into the app-specific program with the Connectivity Kit...

Anyway, lots to think about. Thanks for giving me the nudge in any case!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Modular programming? - mgmander - 03-10-2019, 01:57 AM
RE: Modular programming? - grsbanks - 03-10-2019, 05:42 PM
RE: Modular programming? - mgmander - 03-14-2019 03:19 AM
RE: Modular programming? - Tim Wessman - 03-14-2019, 03:57 AM
RE: Modular programming? - mgmander - 03-14-2019, 04:22 AM
RE: Modular programming? - grsbanks - 03-14-2019, 09:14 AM
RE: Modular programming? - mgmander - 03-11-2019, 04:36 AM
RE: Modular programming? - Tyann - 03-11-2019, 06:47 PM
RE: Modular programming? - mark4flies - 03-16-2019, 11:44 AM



User(s) browsing this thread: 1 Guest(s)