My thanks to Robert Scott for his advice with this command.
I'm not sure who to mention this to, but the book is a bit vague in regards to determining the Integer that is required for this command. The example given is GotoTabPage(LE17, 4), and the description says that this references TabPage4, which led me to believe that the number tacked onto TabPage was the one to be used when referencing the particular tab page. However, and thanks again to Robert, the correct number is reached by counting across the tabs. So the first tab page is 1, the second is 2, and so on. Until I was made aware of this I could not get the command to work for me. I was initially stumped by how I would refer to the first tab page, which has no number; it is just TabPage.
The book's example of GotoTabPage(LE17, 4) as tab page 4 would not, in my experience, refer to the 4th tab page, as counted across. It would actually refer to tab page 2, as TabPage2 would be the fourth one across (TabPage, TabPage0, TabPage1, TabPage2....). To get to TabPage4 you would need to reference GotoTabPage(LE17, 6).
Of course, this is all based on the assumption that you are creating tab pages sequentially, one next to the other. If one starts putting tabs on tabs the TabPage#'s would be totally out of sequence. So I think the book needs to be a bit clearer on how one determines the number of the tab you want displayed.
|