Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
I want to do this function just don't know how to script it.
Ignore errors do something If error = SomeError1 do something else if error = SomeError2 do something different
If you use "ignore errors", you get the variable "last error" which contains the name of the error.
@genadijs34 http://wiki.bablosoft.com/doku.php?id=how_to_catch_errors
@m4zuper Thank you, thank you, thank you! It was so simple. It's really hard not knowing BAS very well.
@evilbaby Please read the topic
2afa552b-f7b8-48ef-ae7e-66924735b306-image.png
@GaG Qt is c++. BAS is written in c++
@allister said in Substring giving me errors:
@rokiroki Sorry bud, I didn't see this come across my feed! You can also use Math.trunc(decs). Just change the type from String to expression when setting the variable. log(Math.trunc(13.37)); // expected output: 13 log(Math.trunc(42.84)); // expected output: 42 log(Math.trunc(0.123)); // expected output: 0 log(Math.trunc(-0.123)); // expected output: -0
@rokiroki
Sorry bud, I didn't see this come across my feed! You can also use Math.trunc(decs). Just change the type from String to expression when setting the variable.
uraabk method worked too, thank you Between mind checking my pm?
@seedgg Many thanks mate!! Working perfect . Thanks for your effort.