I have a test currently (yes I took my time out so I could answer this)
Here ya go, it’s completely untested btw so do let me know if there are any bugs
I use a clock component for calculation. When the textbox.text is changed it is calculated. The problem is contains a .dot in the text box, which shows the NaN error. Once the decimal place is filled it will work properly.
Oh i tried ontstudio solution but there’s an error
And I know the error
I used ontstudio idea, and make some modification and it worked
In the “if” part, the segment length cannot be length of text. Instead it should be 1
In the “then” part segment start should be 1
Yeah, I got it. The start should be 1, not length. Silly me. Sorry, I was nervous because the clock on the test was ticking, and I was out here answering questions on the community.