CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Trimming long values in listboxes

Print topic Send  topic

Author Message
maggiemel

Posts: 75
Posted: 06/16/2005, 10:22 AM

Hello, everybody. I have a listbox on one of my forms and some of the values are very long, causing my page to appear with a horizontal scrollbar (yuck!)

I'm not sure how to trim the value of the text in the listbox. I tried using:

FormName.ListboxName.Value = Left(FormName.ListboxName.Value, 50) & "..."

but that didn't seem to do anything. Maybe I'm referencing the listbox incorrectly?

Probably something simple -- I'm suffering a little brain drain today.

Thanks in advance.

Melissa
_________________
Melissa Cahill
http://www.hellcatmaggie.net/
View profile  Send private message
E43509

Posts: 283
Posted: 06/16/2005, 11:56 AM

If you are selecting data from the database, why not do the trimming when you do the select? Select substr(myfield, 1,10) from mytable (oracle syntax)
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.