Post Reply 
Problems with the name of files (*. hpprgm) and global ids
02-12-2018, 03:51 PM (This post was last modified: 02-12-2018 03:51 PM by Han.)
Post: #4
RE: Problems with the name of files (*. hpprgm) and global ids
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.

Graph 3D | QPI | SolveSys
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 - Han - 02-12-2018 03:51 PM



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