Can I convert a CBUS ta to an Integer in Logic?

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by BradJ, Jun 10, 2008.

  1. BradJ

    BradJ

    Joined:
    Aug 6, 2004
    Messages:
    95
    Likes Received:
    0
    Hi all,

    Is there a way to convert a CBUS application or group tag to an integer in logic?

    i.e. iApplicationID := "Kitchen Lights";
    or even
    iApplicationID := CBUSTagToInt("Kitchen Lights");


    I could simplify a lot of my code if this could be done.

    Any chance it could be coming soon? Pretty please :) :) :)

    Brad.
     
    BradJ, Jun 10, 2008
    #1
  2. BradJ

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    This is on the list of things to do. I can't say when it will be done though.
     
    Darren, Jun 12, 2008
    #2
  3. BradJ

    Duncan

    Joined:
    Jul 23, 2004
    Messages:
    925
    Likes Received:
    0
    Location:
    Salinas de Garci Mendoza, Bolivia
    Is it possible to iterate the group addressses on an Application? If so, someone (not me, I'm the ideas man :) ) could code up a temporary "CBUSTagToInt" function?
     
    Last edited by a moderator: Jun 12, 2008
    Duncan, Jun 12, 2008
    #3
  4. BradJ

    BradJ

    Joined:
    Aug 6, 2004
    Messages:
    95
    Likes Received:
    0
    I can't think of a way to do this.

    If you think its feasible and you give me some initial direction, I'll code it.
     
    BradJ, Jun 12, 2008
    #4
  5. BradJ

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    No, but maybe it should be possible. I will have a think about whether it is a good idea. We try to avoid adding features which could be misused and result in really bad code...
     
    Darren, Jun 13, 2008
    #5
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.