![]() |
Text property? |
Post Reply
|
| Author | |
rdeboer
Groupie
Joined: 29 April 2004 Location: Netherlands Status: Offline Points: 81 |
Post Options
Thanks(0)
Quote Reply
Topic: Text property?Posted: 03 October 2005 at 7:06am |
|
In v9.70. I used: CommandBars.Item(3).Controls(1).Text = "Hello" to change the text within a DropDownList Since 9.80, that doesn't work anymore?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 October 2005 at 7:51am |
|
Hello, use ListIndex if your DropDownList doesn't allow edit: CommandBars.Item(3).Controls(1).ListIndex = 2 |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
rdeboer
Groupie
Joined: 29 April 2004 Location: Netherlands Status: Offline Points: 81 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 October 2005 at 8:00am |
I don't want to use the Listindex property, but the TEXT property. Why doesn't this work in 9.80 ?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 October 2005 at 2:23am |
|
if you want to set index by text replace it to Set Control = CommandBars.Item(3).Controls(1) Control.ListIndex = Control.FindItem("Hello") |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |