Is there a way to assign an object to a variable to make code easier to change and read? For example:
If(
IsBlank(txtItemSetupWidth.Text),
White,
If(
Or(
Value(txtItemSetupWidth.Text) < 0,
Not(IsNumeric(txtItemSetupWidth.Text))
),
ColorFade(
Red,
50%
),
White
)
)
in VBA I could do something like this:
With txtItemSetupWidth
If(
IsBlank(.Text),
White,
If(
Or(
Value(.Text) < 0,
Not(IsNumeric(.Text))
),
ColorFade(
Red,
50%
),
White
)
)
End With
Excel is also rolling this functionality in formulas with the new LET() function, but LET doesn't exist in PowerApps, and WITH() seems to do something totally different.