?
Solved

Setting captions for SSTab in run-time

Posted on 2000-05-02
3
Medium Priority
?
243 Views
Last Modified: 2010-05-02
I have a form with a SSTab control (SSTab1), with two tabs. I wonder how to set the captions for the two tabs in run-time. Something like:

  SSTab1.Tab(0).Caption = "Hello"
  SSTab1.Tab(1).Caption = "Goodbye"

But this doesn't work...
0
Comment
Question by:liljegren
3 Comments
 
LVL 28

Expert Comment

by:AzraSound
ID: 2770220
try this:

sstab1.tab = 0
sstab1.caption = "Hello"
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 200 total points
ID: 2770242
Use this:
SSTab1.TabCaption(1) = "Hello"
0
 

Author Comment

by:liljegren
ID: 2770550
Wonderful. Thanks!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question