Selecting a panel on TMSFMXNavBar

I programmatically add 10 panels to a TMSFMXNavBar.

On each panel there is a TMemo component. In my tests I just write a sentence like "Panel number 2".

When this process is complete I see at the top, in the memo, "Panel number 10".

I want to somehow programmatically make Panel 1, in other words the 1st panel, be selected.

How can I programmatically select the 1st panel?

  Peter Evans

I think you want your_navbar.ActiveTabIndex := number;

Thank you JohnLM for your assistance.
Although your idea didn't work for me it gave me a further thought.
My solution is:-
  if navbar.PanelCount > 0 then

Why this works I do not know!
  Peter Evans