Post Reply 
Check if an app is active, use AVar()
07-18-2015, 04:44 PM (This post was last modified: 07-18-2015 04:44 PM by salvomic.)
Post: #4
RE: Check if an app is active, use AVar()
(07-18-2015 04:23 PM)Marcel Wrote:  Hi Salvomic!
I know that ti-Nspire can do this because we can declare a library to be public or not and use it where and when we want from any document!
This is what I do with Astro Lab 2.
On Prime you can do
and it will work. This is a sort of "public Library"...

(07-18-2015 04:34 PM)Marcel Wrote:  Oups...
In fact this is OK with DATA but with function I have to try it, because one fonction call other and so on...

hi Marcel, thank you, however is a good input...
I tried this, just now:

  // Use Astro Lab 4 if installed
  IF (nameplanet<>"Pluto") THEN
    temp:= breviplanet(nameplanet);
    temp2:= EVAL(Astro_Lab_4.PlanetCoordinates({EVAL(temp),lista}));
    lapp:= temp2(1);
    b:= temp2(2);
    R:= temp2(3);
  // end use Astro Lab 4
breviplanet(); just abbreviate the name of planet like "VEN", "JUP" and so on...
It works if Astro Lab 4 is active, and in Effemeridi give for planets (not Pluto for now) the same results as Astro Lab (taken by there!)
But if Astro Lab 4 is not active I get error: "unmatch control word".

So I need:
1. control if Astro Lab 4 is active
2. correct syntax to work even if it isn't active.

Then I'll study how use Avars from your app (it could be nice to extract some part to elaborate other calculations not already included in the app)...

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: Check if an app is active, use AVar() - salvomic - 07-18-2015 04:44 PM

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