Italian Sub SetLayout() error

Isac

Active Member
Licensed User
Longtime User
Ciao a tutti sto provando il programma di Timo e attualmente mi genera questo errore:


Parsing code. 0.01
Compiling code. Error
Error compiling program.
Error description: '=' expected.
Occurred on line: 116
EditText2.Left=pW*5,55555555555556/100
Word: 5

Qualche idea?

Ringrazio


B4X:
Sub SetLayout()
'call this sub from Activity_Create(), just after Activity.LoadLayout()
Dim ImageView1 As ImageView
Dim H,W As Double
H=100%y 'screen Height
W=100%x 'screen Width
'panel container:
Dim pH,pW As Double

'here you can choose the panel dimensions: they are not necessary the
'same sizes which you have set on the left side of the calculator.
'The contained Views will automatically adapt themselves to it.
'For example:

ImageView1.Left = 0
ImageView1.Top = 0
ImageView1.Width = 360
ImageView1.Height = 570

'Views:
pH=ImageView1.Height
pW=ImageView1.Width

ImageView1.Left=pW*0/100
ImageView1.Top=pH*0/100
ImageView1.Width=pW*100/100
ImageView1.Height=pH*100/100

EditText2.Left=pW*5,55555555555556/100
EditText2.Top=pH*5,26315789473684/100
EditText2.Width=pW*80,5555555555556/100
EditText2.Height=pH*10,5263157894737/100

EditText1.Left=pW*5,55555555555556/100
EditText1.Top=pH*17,5438596491228/100
EditText1.Width=pW*80,5555555555556/100
EditText1.Height=pH*19,2982456140351/100

CheckBox1.Left=pW*8,33333333333333/100
CheckBox1.Top=pH*54,3859649122807/100
CheckBox1.Width=pW*8,33333333333333/100
CheckBox1.Height=pH*5,26315789473684/100

Label1.Left=pW*22,2222222222222/100
Label1.Top=pH*52,6315789473684/100
Label1.Width=pW*27,7777777777778/100
Label1.Height=pH*7,01754385964912/100

CheckBox2.Left=pW*8,33333333333333/100
CheckBox2.Top=pH*66,6666666666667/100
CheckBox2.Width=pW*8,33333333333333/100
CheckBox2.Height=pH*5,26315789473684/100

Label2.Left=pW*22,2222222222222/100
Label2.Top=pH*66,6666666666667/100
Label2.Width=pW*33,3333333333333/100
Label2.Height=pH*5,26315789473684/100


CheckBox3.Left=pW*8,33333333333333/100
CheckBox3.Top=pH*78,9473684210526/100
CheckBox3.Width=pW*8,33333333333333/100
CheckBox3.Height=pH*5,26315789473684/100

Label3.Left=pW*22,2222222222222/100
Label3.Top=pH*78,4210526315789/100
Label3.Width=pW*36,1111111111111/100
Label3.Height=pH*5,26315789473684/100

CheckBox4.Left=pW*61,1111111111111/100
CheckBox4.Top=pH*66,6666666666667/100
CheckBox4.Width=pW*8,33333333333333/100
CheckBox4.Height=pH*5,26315789473684/100

Label4.Left=pW*72,2222222222222/100
Label4.Top=pH*64,9122807017544/100
Label4.Width=pW*27,7777777777778/100
Label4.Height=pH*7,01754385964912/100

End Sub
 
Top