Post Reply 
Check if an app is active, use AVar()
07-18-2015, 10:09 PM
Post: #8
RE: Check if an app is active, use AVar()
(07-18-2015 08:59 PM)StephenG1CMZ Wrote:  Could you use IFERR?

yes Stephen,
using IFERR, this seems to work (but...)
Code:

    IFERR EXPR("Astro_Lab_4()") THEN temp:=0; // change nothing 
    ELSE
        temp:= breviplanet(nameplanet);
        temp2:= EVAL(Astro_Lab_4.PlanetCoordinates({EVAL(temp),lista}));
        lapp:= temp2(1);
        b:= temp2(2);
        R:= temp2(3);
    END;

It executes the 5 lines if Atro Lab is active, and changing the IFERR line like
IFERR EXPR("Astro_Lab_4xxxxxx()") THEN temp:=0; // change nothing
it executes ...nothing, as expected.

But if Astro Lab 4 is not active I got always the "unmatch control word" error: I don't understand from where it comes...

However now with IFERR we can control if the syntax is ok, but not still *if* the app there is or it's active.

Salvo

∫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 10:09 PM



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