- William Beale
- PowerBuilder
- Sunday, 23 May 2021 06:34 AM UTC
Hi,
I have code in a window function to add data in a new row in a datawindow on a tab page on the window.
Once the new entry is populated via the function (which works fine), I want to open that tab page from the calling function in the window.
Below is the code I use to call the function, so I have a ‘handle’ on the tab page but I don’t know how to code to open the tab page and make it active for the User:
li_upper = UpperBound(THIS.tab_entry.Control[])
FOR li_count = 1 to li_upper
If THIS.tab_entry.Control[li_count].classname() = 'u_tabpg_to_do' then
li_rc = THIS.tab_entry.Control[li_count].DYNAMIC of_add_new_entry(as_selected_text)
EXIT
End if
NEXT
// Code needed here in the function to open the tab page
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.