You can see I’ve called the ‘Control Variable‘ to which I’ve assigned the record ctlMusician. The ‘ctl’ prefix denotes it’s a ‘Control Variable’, just like I use the gbl and loc prefixes for the other types of variables
As I pointed out earlier, you won’t find any references to a ‘Control Variable’ in Power Apps documentation. However, it works exactly as the other variables do, so I find it appropriate to think of the With function in this way. There is even a broad similarity between the structure of the With function and that to create a Context Variable
It’s important to remember, the ‘Control Variable’ only exists within the With statement itself. It can’t be accessed from other controls or even within the same control from outside the With statement
Be that as it may, in situations where the requirement is more complex than simply combining the data in 2 fields, the With function can be a great way to streamline and simplify formulas and improve performance of the App
I found using With confusing but thinking this way helps, though I don’t think I’ve fully got it yet. I liked the summary you did on the Variables Checklists. Would you also add With variables to this too?
Hi Brian. That is a really good idea, though I’ll make the ‘control variable’ post seperate to avoid any confusion with real variables. I’m pleased you are enjoying the site