How to use the TextBox's SetCursorPosition

I created a formatting for a document that we use here in Brazil that has dots and dashes that separate it. Example: 000.000.000-00. At the end of the block as shown I have to use what in Kodular we have for the TextBox which is SetCursor At End. I saw in a post here that just use the size of the TextBox.

image

image

I used both the component and the variable it gives error.
I will send all blocks for better understanding.

variaveis

The error when emulating is this one

image

I made these same codes in Kodular but I used setcursor at end and it worked.

Right, but when am I going to use block and this extension?

:question:

So I did as your model but it came out different.

Different from what? Make a right mouse click on Textbox.Text,Do it” and post the result.

I did as you asked, I used only two textbox. In the first one, I only put numbers and the result was the one in the second textbox. In the code the “do it” was in the replace block since in the textbox when I do it it executes the command.

Code:

Designer
erro

I solved the SetCursorPosition problem through a post here in the community.
Thanks to all for your help.

Post a test aia (to check).

Sorry for the delay.
Auto_Format.aia (5.5 KB)

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