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

 limit length of label field in grid?...please help

Print topic Send  topic

Author Message
Jeremy
Posted: 08/13/2002, 11:07 AM

Hey all, in codecharge 2.0 I could just go to the before show events and write a function to limit the amount of words shown in a label field in a grid. The reason for limiting is because I don't want to return a whole paragraph, just return like one sentence, then have it cut off. That way the results are all one line. So my function in codecharge looked like this:

intLength = 68
strString = TrimString(flddescription, intLength)

or a more simple version to limit is this:
fldcity = left(fldcity, 15)

when I try either approach in CCS it tells me my variable is undefined. I am using the before show event on CCS, custom code.
Please give me some direction as to where I need to use code like this. or what extra stuff I need to do to make it work. Thanks.

Jeremy
Jeremy
Posted: 08/13/2002, 2:22 PM

for anyone wondering. In CCS I did this.

articles.article_desc.Value = left(articles.article_desc.value, 35)


articles is the form name

articles_desc. is the field name

It trims the select to 35 characters.

Hope it helps someone.

   


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

MS Access to Web

Convert MS Access to Web.
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.