Hi
I want to set the properties of my views with variables. So, if for example I have a variable named WidthOfButton then I do the following:
But if the value of WidthOfButton is not static but is calculated like this
How to assign the result of (SomeVariable / 3) to WidthOfButtons as dip value?
I want to set the properties of my views with variables. So, if for example I have a variable named WidthOfButton then I do the following:
B4X:
Dim WidthOfButtons As Int
WidthOfButtons = 40dip
Button1.Width = WidthOfButtons
Button2.Width = WidthOfButtons
But if the value of WidthOfButton is not static but is calculated like this
B4X:
Dim WidthOfButtons As Int
WidthOfButtons = SomeVariable / 3
How to assign the result of (SomeVariable / 3) to WidthOfButtons as dip value?