C coder22 Member Licensed User Longtime User Aug 23, 2013 #1 Hi, in my designer script I keep getting this compile error: \designerscripts\LS_1.java:17: error: illegal start of expression ;}else if So I'm wondering if Else If is supported there? Or is it ElseIf maybe? Thanks!
Hi, in my designer script I keep getting this compile error: \designerscripts\LS_1.java:17: error: illegal start of expression ;}else if So I'm wondering if Else If is supported there? Or is it ElseIf maybe? Thanks!
Olaan Expert Licensed User Longtime User Aug 24, 2013 #2 supported since version 2.30 up,I had used it. If 100%x > 100%y Then ' เขียนโปรแกรมจัดการในแนวนอน else ' เขียนโปรแกรมจัดการในแนวตั้ง end If Click to expand... Last edited: Aug 24, 2013 Upvote 0
supported since version 2.30 up,I had used it. If 100%x > 100%y Then ' เขียนโปรแกรมจัดการในแนวนอน else ' เขียนโปรแกรมจัดการในแนวตั้ง end If Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Aug 25, 2013 #3 'Else If' should be supported. Can you post the script you are trying to run? Upvote 0
C coder22 Member Licensed User Longtime User Aug 26, 2013 #4 Erel said: 'Else If' should be supported. Can you post the script you are trying to run? Click to expand... If ActivitySize < 4.0 Then AutoScaleRate(0.01) Else If ActivitySize >= 4 AND ActivitySize < 7 Then AutoScaleRate(0.4) Else If ActivitySize >= 7 AND ActivitySize < 9 Then AutoScaleRate(0.8) Else ' ActivitySize >= 9 AutoScaleRate(0.87) End If The error occurs at the first Else If. Before adding the else if's, Else worked fine. B4A v. 2.52 Thanks Erel Upvote 0
Erel said: 'Else If' should be supported. Can you post the script you are trying to run? Click to expand... If ActivitySize < 4.0 Then AutoScaleRate(0.01) Else If ActivitySize >= 4 AND ActivitySize < 7 Then AutoScaleRate(0.4) Else If ActivitySize >= 7 AND ActivitySize < 9 Then AutoScaleRate(0.8) Else ' ActivitySize >= 9 AutoScaleRate(0.87) End If The error occurs at the first Else If. Before adding the else if's, Else worked fine. B4A v. 2.52 Thanks Erel
C coder22 Member Licensed User Longtime User Aug 26, 2013 #5 Theera said: supported since version 2.30 up,I had used it. Click to expand... Else by itself works fine Theera, thanks! Upvote 0
Theera said: supported since version 2.30 up,I had used it. Click to expand... Else by itself works fine Theera, thanks!
Erel B4X founder Staff member Licensed User Longtime User Aug 27, 2013 #6 There was a bug related to >=, <=. Try to use >, < instead. It was fixed in v2.7 if I remember correctly. Upvote 0
There was a bug related to >=, <=. Try to use >, < instead. It was fixed in v2.7 if I remember correctly.
C coder22 Member Licensed User Longtime User Aug 27, 2013 #7 Erel said: There was a bug related to >=, <=. Try to use >, < instead. It was fixed in v2.7 if I remember correctly. Click to expand... That fixed it Erel by just removing = Thanks so much! Upvote 0
Erel said: There was a bug related to >=, <=. Try to use >, < instead. It was fixed in v2.7 if I remember correctly. Click to expand... That fixed it Erel by just removing = Thanks so much!