cancel
Showing results for 
Search instead for 
Did you mean: 

Parent & Me - please add reference to the control itself.

We can reference control to a parent (Like Parent.Width, .Height, .Fill, etc.). For the controls however we have to reference it by it's name. So when I have a control name 'Label1' I can reference it bij Label1.Width, .Height, . Color, .Fill, etc.

 

It should be a great idea to add a global reference to the control itself. Me comes in mind as a good name for this parameter. So Me.Width, .Height, .Fill, etc.

 

This parameter would make it faster to copy formula's from control to control or add a formula to multiple selected controls. An example:

 

Say I have ten controls (Control1,2,3,4,5,...) and I want them to be at the left off my screen. I can then select them all and just do  the following formula on the X parameter: 

Parent.Width - Me.Width

 

Current I must adjust the formula for each control like:

Parent.Width - Control1.Width // for the first control
Parent.Width - Control2.Width // for the second control
Parent.Width - Control3.Width // for the third control
// and so on

This is time consuming because I have to copy/paste/adjust for each individual control.

So I would make a major time reduction to be able to do all ten controls in the same time.

 

Status: Under Review
Comments
Level: Power Up

This shows how immature PowerApps is. Not having Me. or ThisItem. etc.

Microsoft Access has had this Self OO approach since the 1990's.

Come on guys, you can do better that this.