Runtime Error message

  1. 6 years ago

    Joel_Eisenstat

    21 Jun 2017 User since 2016

    Runtime error message - unable to perform operator BAND on object
    for code in segmented control and toggle (active) .

    if (index == 0 & activepat ==true) {
    MasterTable.dataSet = PostgreSQL1.ActiveID

    } else if (index == 0 & activepat == false) {
    MasterTable.dataSet = PostgreSQL1.AllID

    } else if (index == 1 & activepat == true) {
    MasterTable.dataSet = PostgreSQL1.ActiveLastname

    } else {
    MasterTable.dataSet = PostgreSQL1.AllLastname

    }

    Thanks
    Joel

  2. marco

    21 Jun 2017 Administrator User since 2016

    @Joel_Eisenstat the logical and operator is && and not &.
    Just replace with && in your code.

    PS you can also use the and keyword

  3. Joel_Eisenstat

    21 Jun 2017 User since 2016

    Thanks for the quick reply !

or Sign Up to reply!