Convert the Text of a Button to a Number

I have an extremely similar bug. I'm trying to use the Any Button component, to avoid redundant code. However, while trying to get the List index by replacing the Button's name (more of removing it) with "".

Here's my code:

(component = Button3)
image

I get this error when using the replace statement for the index (it doesn't show when I'm using a number):

Unfortunately, none of the proposed solution in this thread have worked for me.

1 Like

Realized my mistake, sorry.

Didn't realize component would give the Hash value; I also used regular Text in the Do It. With the help of list indexing, I was able to fix it.
Thank you.