Tab Control: Dynamically Changing the Title of Each Page


This article descries how to change at runtime the title shown for each page on a Tab.


Is there a way to dynamically change the title of each page defined as part of a Tab?


The solution is to reset the Tab and then add the new titles to be shown. Not resetting the Tab will just add pages and not rename the existing pages. Below is sample code based on a Tab called Screen1-Ta-1:

modify Screen1-Ta-1, reset-TABs 1
modify Screen1-Ta-1, TAB-TO-add ("test1" , "test2")

After this, the two pages on the Tab will have the titles changed to “test1” and “test2” with all their elements attached correctly.

Incident Number: 99-043554

Old KB# 14351
Comment List