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.
|
|
|
 |
|