Post Reply 
Problems with the name of files (*. hpprgm) and global ids
02-12-2018, 06:27 PM
Post: #8
RE: Problems with the name of files (*. hpprgm) and global ids
(02-12-2018 03:51 PM)Han Wrote:  Since the new firmware, all your problems can be easily resolved by encapsulating all your programs into a single app. You can even go as far as creating files that are packaged with your apps which are then stored into programs. For example, your app may include programs stored as myprogram1.prg, myprogram2.prg, etc. First create your programs and then do:

AFiles("myprogram1.prg"):=Programs("Program1")

Do this for all your "folders" and package these .prg files with your app.

Then you can simply do something like:

Programs("Program1"):=AFiles("myprogram1.prg");

Place this inside the START() function of your app, and your programs will always have highest priority even if someone else happens to create a program and/or variables using the same names as yours. The same goes for any constants you want to create.

The problem you are describing has always been and will always be an issue for many types of platforms -- not just the HP Prime. Even everyday computers have this issue where if you rename their program folders, the programs may either misbehave or stop working entirely.

It is a destructive method, I believe that this has been possible since much earlier, a possibility of lighter executions, so as not to put all the code in the application program.

Viga C | TD | FB
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Problems with the name of files (*. hpprgm) and global ids - Carlos295pz - 02-12-2018 06:27 PM



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