Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get the Name of Tab as a String

Status
Not open for further replies.

Arthur1

MIS
Apr 8, 2003
28
US
Hi,

I am looping through a series of tab pages on a tab control, and I need to see wether the tab pages match their control name in a string. However, I am not sure how to get the name as a sting?
The variable ls_control_name is a string and I need to match it with the "tab_control.control[i_count]"

Code below:

i_count_tabs = UpperBound(tab_control.Control[])

For i_count = 1 to i_count_tabs
If ls_control_name = tab_control.control[i_count] Then
tab_control.control[i_count].Visible = False
end if
Next

Any help would be great.
 
I found the answer:
I should have used the below line to get the tab page name as a string.
tab_control.control[i_count].classname()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top