PAC Logic

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by Dave Byron, Apr 18, 2007.

  1. Dave Byron

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    Is this still true - from help file ??
    Tags are case sensitive, hence the following tags are not equivalent : "lounge light", "Lounge Light", "LOUNGE LIGHT".

    If so when do you get to find out the tags are not found - it compiles OK and no runtime errors.

    I have used this and I know the case not correct compared to the Toolkit DB

    SetLightingState("BED 6 CLOSED", OFF);
    SetLightingState("Bed 6 Open", ON);

    but no errors show up

    dave
     
    Last edited by a moderator: Apr 18, 2007
    Dave Byron, Apr 18, 2007
    #1
  2. Dave Byron

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    You should see a compile error

    Error C261 at line X:Y - Tag Error

    You are correct in that it doesn't seem to be case sensitive. I will look into why this is.
     
    Darren, Apr 19, 2007
    #2
  3. Dave Byron

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    Darren
    No errors - both lines can not be correct, but I would be very happy for it work that way, simple up/down shift before compare tags.


    dave
     

    Attached Files:

    Dave Byron, Apr 19, 2007
    #3
  4. Dave Byron

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    The help file was a bit misleading. C-Bus tags are not case sensitive. We went to some trouble to make this happen a long time ago. Other tags (page names, Schedule names etc) are case sensitive. I will update the help file to reflect this.
     
    Darren, Apr 20, 2007
    #4
  5. Dave Byron

    PSC

    Joined:
    Aug 3, 2004
    Messages:
    626
    Likes Received:
    0
    Location:
    Brisbane, Australia
    Darren, why not just can the way the logic engine works so it matches the help file :D :D :D

    That way Dave will be happy because his logic won't work as he first suspected ;)
     
    PSC, Apr 20, 2007
    #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.