Print Page | Close Window

Text property?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2990
Printed Date: 17 November 2024 at 1:29pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Text property?
Posted By: rdeboer
Subject: Text property?
Date 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?

 




Replies:
Posted By: Oleg
Date 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


Posted By: rdeboer
Date 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 ?

 



Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net