Forum Discussion

Acorn999's avatar
Acorn999
Brass Contributor
Jul 14, 2023

Incompatible types for comparison. These types can't be compared: Table, Number.

My app uses a gallery of buttons to act as tabs and create a tabbed form. See screenshot. Each field in the form Visible property is set to either true so it shows on all tabs or set to  varTabSele...
  • Acorn999's avatar
    Jul 14, 2023
    Resolved my issue by removing these brackets from Fill property DataCardValue [],
    It seems these brackets around a DataCardValue will set the value as a table. This caused the issue for If(Not(IsBlank to always return true.

    Issue:
    [DataCardValue14.Text]

    Issue resolved
    DataCardValue14.Text

    Before fix:
    If(varTabSelected = ThisItem.ID, RGBA(0, 120, 212, 1),If(Not(IsBlank([DataCardValue14.Text]))&&ThisItem.ID = 2, Color.Green, Color.Gray))

    After Fix:
    If(varTabSelected = ThisItem.ID, RGBA(0, 120, 212, 1),If(Not(IsBlank(DataCardValue14.Text))&&ThisItem.ID = 2, Color.Green, Color.Gray))

Resources