I tried tab_title_element.tabpage_title_element.PageText =
ls_ProdType
But this gives a "Incompatible property" error.
AR
Brad
--
*********************************************************************************************************
www.PowerToTheBuilder.com
- Take control of your GUI with a free PB user control library
- Get updates from my blog - blog.PowerToTheBuilder.com
- Get support from - forum.PowerToTheBuilder.com
*********************************************************************************************************
www.Werysoft.com
- Full featured database development tool for ASE, SQL Server, SQL
Anywhere and Oracle
Get productive today!
*********************************************************************************************************
Userobjects and tabpage objects both have a TabText property.
--
*********************************************************************************************************
On the Browser in the IDE there's a System tab that lets you explore
the attributes and methods attached to each object type. That's how I
looked this up.
Good luck,
Terry and Sequel the techno-kitten
On 23 Apr 2009 10:23:28 -0700, AR wrote:
>Theres no TabText property.
>Anyway tried
>"tab_title_element.tabpage_title_element.TabText =
>ls_ProdType". Still giving the incompatible error.
>AR
>> Try the TabText property instead.
>>
>> Brad
>>
>> AR wrote:
>> > Is there a way that I can change the
>> > text(description/title) of a tabpage in a tab control?
>> > For ex: I have 2 tab pages. One of the tabpage has
>> > 'Feature' defaulted @ design time. when the window opens
>> > , based on a condition, i want to change the title to
>> > show Feature or Sereis or Season.
>> > I tried tab_title_element.tabpage_title_element.PageText
>> > = ls_ProdType
>> > But this gives a "Incompatible property" error.
*********************************
Build your vocabulary while feeding the hungry
http://www.freerice.com
*********************************
Newsgroup User Manual
=====================
TeamSybase <> Sybase employee
Forums = Peer-to-peer
Forums <> Communication with Sybase
IsNull (AnswerTo (Posting)) can return TRUE
Forums.Moderated = TRUE, so behave or be deleted
*********************************
Sequel's Sandbox: http://www.techno-kitten.com
Home of PBL Peeper, a free PowerBuilder Developer's Toolkit.
Version 4.0.4 now available at the Sandbox
PB Futures updated June 25/2008
See the PB Troubleshooting & Migration Guides at the Sandbox
^ ^
o o
=*=
Try the text property. However, perhaps a more OO approach is to
dynamically open a page that is appropriate for the purpose. Presumably,
there is some functional and graphical difference between "Feature" and
"Series" (sic?) and "Season". Therefore, would it not make more sense to
create your own user object for each "type" of page and create it / add it
to the tab when needed?
Try this
This.tab_main.tabpage_1.text = "Any Name"
Amandeep
<AR> wrote in message news:49f09c65.726...@sybase.com...