|
-
Jul 18th, 2003, 11:43 AM
#1
Thread Starter
Member
SSTab.Tab [Resolved]
I'm trying to use the SSTab controls on a screen and want to trigger some events based on the tab that is selected. My problem is that when I try to use SSTab.Tab, my system reports that the method or data member is not found for the .Tab event. Any ideas ?
Thanks
-
Jul 18th, 2003, 11:57 AM
#2
Please show the code that you are using.
-
Jul 18th, 2003, 12:28 PM
#3
Thread Starter
Member
Pretty simple code.
If SSTab.Tab = 1 then
MsgBox "Tab one clicked"
End if
Using this and do a run with full compile, I get the error of the data member or object not found. It's been added to my project as a Microsoft Tabbed Dialog control 6.0 SP5
-
Jul 18th, 2003, 12:34 PM
#4
Hyperactive Member
Originally posted by cfisher
Pretty simple code.
If SSTab.Tab = 1 then
MsgBox "Tab one clicked"
End if
Using this and do a run with full compile, I get the error of the data member or object not found. It's been added to my project as a Microsoft Tabbed Dialog control 6.0 SP5
Did u check if the control name is SSTab or SSTab1 or something else...
-
Jul 18th, 2003, 12:35 PM
#5
OK let's get some basic stuff out of the way.
Is your control actually named ssTab? The default wopuld be ssTab1.
Is the code you show on the form where you have the control?
-
Jul 18th, 2003, 12:42 PM
#6
Thread Starter
Member
I re-named the default from SSTab1 to SSTab as indicated in my code (I even tried on another form just leaving it as a default SSTab1 but had the same problem) and the code does exist on the form. When I try to use SSTab.??? I only get the option for Count,Item,LBound and UBound. It's almost like part of the OCX file did not load (or I'm missing another reference). I've added many other controls to different project, but have never had this problem.
-
Jul 18th, 2003, 12:44 PM
#7
You have the Index property set to 0 (or some other value) so it thinks it's a control array.
-
Jul 18th, 2003, 12:55 PM
#8
Thread Starter
Member
RESOLVED
Perfect. That's exactly what the problem was. Many thanks, I would have been looking for quite a while before coming up with that.
Chris
-
Jul 18th, 2003, 01:01 PM
#9
You're welcome.
BTW I edited your original post to add "Resolved" to the thread.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|