CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Shortening a displayed field

Print topic Send  topic

Author Message
Paul
Posted: 02/04/2002, 6:53 AM

I would like to shorten a field displayed in my grid. And i would like to do this by ony displaying the first three characters of the field. For example i would like 'Edu' instead 'Education' and 'Ind' instead of indusrtial. How would i go about doing this and where would i need to place the code.... i'm guessing it would be some custom code in the Before Show event....

I am using MySQL and ASP, thanks in advance guys :)
Nicole
Posted: 02/04/2002, 7:51 AM

Paul,
use Mid() function in BeforeShow event, e.g.:
fldfield_name = Mid(fldfield_name, 1, 3)

http://msdn.microsoft.com/library/default.asp?url=/libr...1/D6/S5B26B.asp

   


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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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