Try a function something like this...
if len(string) > 30 then
truncateString = mid(strString, 1, 30)
truncateString = strString
John Smith wrote:
> I'm trying to nicely display the results of a search but some results are
> longer than others in length. Is there a way of only displaying the first 30
> characters of a search result (i.e. enough to make sure they know what it is
> but not enough to mess up the formatting of the page) ?
> Any online tutorials etc. much appreciated.