Save or delete app in app library? - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Save or delete app in app library? (/thread-4871.html) |
Save or delete app in app library? - DrD - 10-04-2015 11:13 AM In general, how can an app be saved or deleted programmatically, if possible? Specifically, I want to delete a saved (named) spreadsheet, if it exists at run time, and then create (save) a new named spreadsheet, via the program. Thanks! -Dale- RE: Save or delete app in app library? - Tyann - 10-04-2015 01:49 PM bonjour sujet intéressant. Il faudrait une variable de type liste (AAppli par exemple) qui contienne les nom des applications créées. On pourrait écrire : AAppli("nom"):=type d'application type serait un nombre entier: 0=function 1=tableur etc... et aussi : DelAApli("nom") Qu'en pensez-vous ? Hello interesting topic. There should be a list variable ( AAppli for example) that contains the names of the applications created . One could write : AAppli ( "name" ) = type of application an integer type would be : 0 = function 1 = spreadsheet etc ... and also : DelAApli ( "name") What do you think ? RE: Save or delete app in app library? - DrD - 10-04-2015 03:02 PM Well, as long as we are being inventive, why not use arguments for the existing STARTAPP() function?: STARTAPP("Your name", [n]); Where the optional [n] might be: [0] Deletes app named "Your name" [1] Clears contents of app named "Your name" [2] Creates a new app named "Your name" No optional argument would just make STARTAPP("Your name") the current app. Perhaps, these suggestions will serve as inspiration for those so empowered. -Dale- RE: Save or delete app in app library? - Tyann - 10-04-2015 03:47 PM Espérons le. Ce qui serait utile aussi, c'est de savoir quelle est l'application active. Mais nous pouvons le faire nous même. Il suffit que chaque utilisateur créant une application écrive : Avars("Active"):="nom de l'application" Let's hope so. What would be helpful is to know which is the active application. But we can do it ourselves. Just as each user creating an application writes : Avars ( "Active" ):= " application name " RE: Save or delete app in app library? - cyrille de brébisson - 10-05-2015 07:07 AM Hello, Actually, even simpler, each app should have a program variable that is EXPORT CurrentApp="text". so there is no need to create App variables. Cyrille RE: Save or delete app in app library? - Tyann - 10-05-2015 07:54 AM Bonjour Cyrille Merci de vôtre réponse. Cette variable ne pourrait-elle pas être intégrée au système au même titre que AFormat, AAngle etc... et se mettre à jour quand l'utilisateur copie une application ? Exemple : Function.ACurrent -> "FUNCTION" et ainsi avoir une variable de réfèrence identique pour tout le monde. Hello Cyrille Thank you for your response. This variable could it not be integrated into the system in the same way that AFormat , AAngle etc ... and update when the user copies an application? example: Function.ACurrent -> "FUNCTION" and have the same reference variable for everyone . |