How do i detect 2 numbers phone from the front

Hi all,
how do i detect 2 numbers from the front?
i have number, i use this with textboxt1 : 087777777266788
but if i write the number not 08 then an error will occur through the notification
thank all for help

Use the segment text block, and use it on the TextBox1.text. Compare that value with "08," and proceed from there.

ok i try now

compare textbox1 = 08
start 1
length 2

not work why

please show how you've implemented this in blocks

correct
this is my block

Screenshot_2023-09-03-09-14-08-323_com.android.chrome

the event should be textbox.changed

oh just now I got the solution, thanks for reply nishyanthkumar
correct

It can't be on Screen1 Initialize, there isn't anything in the TextBox at that time? Also you haven't incorporated Nishyanth's code!

1 Like

correct
in button

You are using the replace all block...
The correct block to be used is the segment block...

Taifun

1 Like

ok thanks taifun

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.