Runtime Error message

  1. 5 months ago

    Joel_Eisenstat

    Jun 21 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

    Jun 21 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

    Jun 21 User since 2016

    Thanks for the quick reply !

or Sign Up to reply!