Using a Variable to SetLightingStatus

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by pspeirs, Apr 5, 2015.

  1. pspeirs

    pspeirs

    Joined:
    Nov 23, 2013
    Messages:
    185
    Likes Received:
    10
    Location:
    Sydney
    Hi All,,
    I'm having some issues getting the SetLightingStatus to work correctly by passing in a variable.
    So if I set the string variable "LightingStatus" to BEDROOM4 for example and try to pass that in using

    SetLightingStatus(BEDROOM4, ON);

    Not surprisingly I get an error.

    I then tried to add the double quotes to the beginning and end of the string however this also resulted in an error.

    Perhaps a translation from the string label into the actual group number would be the better approach, but open to suggestions.

    Regs,
    Paul
     
    pspeirs, Apr 5, 2015
    #1
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.