Tabpanel question

I’m starting my first project on Xojo after programming a long time on RealStudio.

How do I change the text in the tab of a tabpanel from code? Example, I have two tabs “tab1” and “tab2” in a tab panel and I want to change “tab1” to “First” in my code.

TabPanel.Caption(0) = “First”