The operation replace list item cannot accept the arguments: mit app inventor

Capture

Can anyone help me with this error?

I want to change the list name by using textbox and will also automatically change on list view. but I got this error. help please

global editTeach is not a list.

You do not need that variable.

replace index Listview.SelectionIndex of list Teacherlist with replacement edittext.Text

wow thank you so much , I got it!

there is an extra question. Do you know how to make other Text changed automatically after I edit its name?