Forum Discussion
Acorn999
Jul 14, 2023Brass Contributor
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...
- Jul 14, 2023Resolved 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))
Acorn999
Jul 14, 2023Brass Contributor
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))
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))