Skip to main content
April 11, 2009
Answered

MX7: Show only 1st 30 characters of string.

  • April 11, 2009
  • 2 replies
  • 500 views

Anyone here who can show me how to only show the 1st 30 characters of a string?

I know that is must be something easy, but I've got no clue how to do it.

Thank you.

This topic has been closed for replies.
Correct answer BKBK

left(myString, 30)

2 replies

Inspiring
April 11, 2009

Take a look at string functions. Specifically left() or mid()

http://livedocs.adobe.com/coldfusion/8/htmldocs/functions-pt0_18.html

BKBK
Community Expert
BKBKCommunity ExpertCorrect answer
Community Expert
April 11, 2009

left(myString, 30)

April 11, 2009

Pfff.. That was an easy one :-)

Thank you.