@Muhammad_Ahmed please show your full blocks.
https://community.appinventor.mit.edu/t/how-to-ask-a-question-open-new-topic/10189