How to replace text of button from its I’d by choosing position…

Hi how to write this code
I want to replace text of button from its I’d by choosing position…
I’d is button identity and index is position of button
I want replace text from perticular I’d by chosing it’s position
Any example

Could you please change your title. It doesn’t reflect your question.

I’m not sure this is an open source question.

If it’s just a plain AI2 blocks coding question, look at this sample for changing button text by index in a list …

i m asking example of java code

We don’t assign IDs to the views that are created programmatically by App Inventor. Your extension may be able to do this, but currently they are not identified in any way.