Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Text property?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Text property?

 Post Reply Post Reply
Author
Message
rdeboer View Drop Down
Groupie
Groupie


Joined: 29 April 2004
Location: Netherlands
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdeboer Quote  Post ReplyReply Direct Link To This Post 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?

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
rdeboer View Drop Down
Groupie
Groupie


Joined: 29 April 2004
Location: Netherlands
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdeboer Quote  Post ReplyReply Direct Link To This Post Posted: 03 October 2005 at 8:00am
Originally posted by oleg oleg wrote:

Hello,

use ListIndex if your DropDownList doesn't allow edit:

CommandBars.Item(3).Controls(1).ListIndex = 2

I don't want to use the Listindex property, but the TEXT property.

Why doesn't this work in 9.80 ?

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.