- Jun 6, 2020
- 11,559
- 4,422
I have begun to play with the Designer Script Extension.
I wanted to set colors, but this code in the Designer Scripts, with hexadecimal values, does not work:
B4X:
It throughs this error:
Waiting for debugger to connect...
Program started.
Error occurred on line: 16 (MyStandardClass)
java.lang.NumberFormatException: For input string: "0xff000000"
at java.base/jdk.internal.math.FloatingDecimal.parseHexString(FloatingDecimal.java:2082)
at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1870)
at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.base/java.lang.Double.parseDouble(Double.java:543)
at anywheresoftware.b4a.BA.ObjectToNumber(BA.java:434)
at b4j.DESFirstStep.mystandardclass._setcolortextsizecolor(mystandardclass.java:82)
at...
I wanted to set colors, but this code in the Designer Scripts, with hexadecimal values, does not work:
B4X:
MyStandardClass.SetColorTextSizeColor(Button1, 0xff000000, "New", 20, 0xffff0000)
It throughs this error:
Waiting for debugger to connect...
Program started.
Error occurred on line: 16 (MyStandardClass)
java.lang.NumberFormatException: For input string: "0xff000000"
at java.base/jdk.internal.math.FloatingDecimal.parseHexString(FloatingDecimal.java:2082)
at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1870)
at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.base/java.lang.Double.parseDouble(Double.java:543)
at anywheresoftware.b4a.BA.ObjectToNumber(BA.java:434)
at b4j.DESFirstStep.mystandardclass._setcolortextsizecolor(mystandardclass.java:82)
at...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید