Pass Tagname as parameter into a function?

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by nigeltodd, Jun 30, 2009.

  1. nigeltodd

    nigeltodd

    Joined:
    Sep 27, 2005
    Messages:
    32
    Likes Received:
    0
    Location:
    Melbourne
    Is there any known way to do this - ie to have a function which takes a Group tagname and returns a result - eg

    GetLvl(Groupname) : integer;
    begin
    GetLvl := GetCBuslevel(Groupname);
    end;


    Usage would be
    L1 := GetLvl(Groupname);


    When dimming a set of lights I wish to return them to the previous levels.

    It may be possible to do this by using Recall, although I am not sure how to do this in logic.

    Thanks

    Nigel
     
    nigeltodd, Jun 30, 2009
    #1
  2. nigeltodd

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    This is not possible at the moment. It is in our to do list as #7041

    The normal way of doing this is to have the groups in a scene then store the scene levels and later on when you need to restore the levels, set the scene.
     
    Darren, Jul 1, 2009
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.