Hi guys, I'm not sure why I'm getting an error when I compile my project.
This is my designer script:
I tried Alt + 2 and no error occurred. Alt + 1 and Alt + 3 got those errors.
My version is 3.20 so I guess my designer should have support for conditional statements. Please help me with this.
B4X:
javac 1.7.0_05
src\com\tip\aris_mobile\designerscripts\LS_login.java:24: error: illegal start of type
;}else if (((100d / 100 * width)>(100d / 100 * height))) {
^
1 error
This is my designer script:
B4X:
'All variants script
'AutoScaleAll 'uncomment to scale all views based on the device physical size.
If 100%x < 100%y Then 'Portrait
txtStudNo.Top = 0
txtUserId.Top = txtStudNo.Top + txtStudNo.Height
txtPassword.Top = txtUserId.Top + txtUserId.Height
btnLogin.Top = txtPassword.Top + txtPassword.Height
dpanLogin.Height = btnLogin.Top + btnLogin.Height
dpanLogin.Width = 70%x
dpanLogin.VerticalCenter = 75%y
dpanLogin.HorizontalCenter = 50%x
ivLogin.Height = ivLogin.Width = 40%y
ivLogin.VerticalCenter = 25%y
ivLogin.HorizontalCenter = 50%x
Else If 100%x > 100%y Then 'Landscape
txtStudNo.Top = 0
txtUserId.Top = txtStudNo.Top + txtStudNo.Height
txtPassword.Top = txtUserId.Top + txtUserId.Height
btnLogin.Top = txtPassword.Top + txtPassword.Height
dpanLogin.Height = btnLogin.Top + btnLogin.Height
dpanLogin.Width = 40%x
dpanLogin.VerticalCenter = 50%y
dpanLogin.HorizontalCenter = 75%x
ivLogin.Height = ivLogin.Width = 40%x
ivLogin.HorizontalCenter = 25%x
ivLogin.VerticalCenter = 50%y
End If
txtStudNo.Left = 0
txtUserId.Left = 0
txtPassword.Left = 0
btnLogin.Left = 0
txtStudNo.Width = dpanLogin.Width
txtUserId.Width = dpanLogin.Width
txtPassword.Width = dpanLogin.Width
btnLogin.Width = dpanLogin.Width
I tried Alt + 2 and no error occurred. Alt + 1 and Alt + 3 got those errors.
My version is 3.20 so I guess my designer should have support for conditional statements. Please help me with this.
Last edited: