vbmundo Well-Known Member Licensed User Aug 3, 2016 #1 Hi, I wish that B4A include in future versions the WITH <Object> END WITH Structure. Because this structure help to keep a clear code and you write less words.. NOW B4X: ListaCheques.TwoLinesLayout.SecondLabel.TextColor=Colors.RGB(44,62,80) ListaCheques.TwoLinesLayout.SecondLabel.Gravity=Gravity.CENTER_VERTICAL ListaCheques.TwoLinesLayout.SecondLabel.Height=50dip ListaCheques.TwoLinesLayout.SecondLabel.Top=50dip ListaCheques.TwoLinesLayout.SecondLabel.Width=74%x ListaCheques.TwoLinesLayout.SecondLabel.Left=97dip WITH - END WITH B4X: With ListaCheques.TwoLinesLayout.SecondLabel .TextColor=Colors.RGB(44,62,80) .Gravity=Gravity.CENTER_VERTICAL .Height=50dip .Top=50dip .Width=74%x .Left=97dip End With Thanks
Hi, I wish that B4A include in future versions the WITH <Object> END WITH Structure. Because this structure help to keep a clear code and you write less words.. NOW B4X: ListaCheques.TwoLinesLayout.SecondLabel.TextColor=Colors.RGB(44,62,80) ListaCheques.TwoLinesLayout.SecondLabel.Gravity=Gravity.CENTER_VERTICAL ListaCheques.TwoLinesLayout.SecondLabel.Height=50dip ListaCheques.TwoLinesLayout.SecondLabel.Top=50dip ListaCheques.TwoLinesLayout.SecondLabel.Width=74%x ListaCheques.TwoLinesLayout.SecondLabel.Left=97dip WITH - END WITH B4X: With ListaCheques.TwoLinesLayout.SecondLabel .TextColor=Colors.RGB(44,62,80) .Gravity=Gravity.CENTER_VERTICAL .Height=50dip .Top=50dip .Width=74%x .Left=97dip End With Thanks
Erel B4X founder Staff member Licensed User Longtime User Aug 3, 2016 #2 You can write it like this: B4X: Dim lbl As Label = ListaCheques.TwoLinesLayout.SecondLabel lbl.Gravity = ... lbl.Height = ... lbl.Top = ...
You can write it like this: B4X: Dim lbl As Label = ListaCheques.TwoLinesLayout.SecondLabel lbl.Gravity = ... lbl.Height = ... lbl.Top = ...
vbmundo Well-Known Member Licensed User Aug 6, 2016 #4 Erel said: You can write it like this: B4X: Dim lbl As Label = ListaCheques.TwoLinesLayout.SecondLabel lbl.Gravity = ... lbl.Height = ... lbl.Top = ... Click to expand... Just a question When you modify the lbl properties, this new values modify ListaCheques.TwoLinesLayout.SecondLabel ?
Erel said: You can write it like this: B4X: Dim lbl As Label = ListaCheques.TwoLinesLayout.SecondLabel lbl.Gravity = ... lbl.Height = ... lbl.Top = ... Click to expand... Just a question When you modify the lbl properties, this new values modify ListaCheques.TwoLinesLayout.SecondLabel ?
vbmundo Well-Known Member Licensed User Aug 7, 2016 #6 Ahh OK, then when creating lbl that way, assigning a value creation becomes an object reference moved Thanks Erel
Ahh OK, then when creating lbl that way, assigning a value creation becomes an object reference moved Thanks Erel