In build 6.10 (and later)
There is a routine in the Form called TabChanged
This is called when the user changes a tab using the Accordion, Tab or Wizard tab styles.
In this routine a local variable called TabNumber is set. Please note that tabs are zero-based, so the first tab is tab 0.
There are embed points in this routine where you can add code to "refresh" other items on the screen. For example;
do FormHeading ! refreshes the heading on the form
do Refresh::fieldname ! refreshes the specific field on the form
and so on.
One common request when a tab changes is to change the Heading (or sub-heading) on the form. To make this easy to do an array variable called TabHeading is generated into the routine as well. This is populated with the tab headings.
HOWEVER NOTE THAT : Arrays in Clarion are '1' based, and the TabNumber is 0 based, so to set the heading you will need something like;
myFormHeading = TabHeading[TabNumber+1]
do FormHeading
and of course myFormHeading is a local variable you've defined, and you've set either the heading or subheading to myFormHeading.
cheers
Bruce