Skip to main content
Known Participant
September 9, 2010
Answered

substring function

  • September 9, 2010
  • 2 replies
  • 2822 views

I do not find a substring function in ColdFusion 6.1.

I want to have some function like:

substring(string [, start ] [, length])

This topic has been closed for replies.
Correct answer -__cfSearching__-

Take a look at the functions by category. Under string functions you will find MID. That is ColdFusion's version of substring.

http://www.adobe.com/livedocs/coldfusion/6.1/htmldocs/functi17.htm

2 replies

-__cfSearching__-Correct answer
Inspiring
September 9, 2010

Take a look at the functions by category. Under string functions you will find MID. That is ColdFusion's version of substring.

http://www.adobe.com/livedocs/coldfusion/6.1/htmldocs/functi17.htm

Inspiring
September 9, 2010

Nope, there isn't a subString() function.  But if one wants to get the middle of a string, there's a function for that:

http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec1a60c-7ffc.html#WSc3ff6d0ea77859461172e0811cbec22c24-6a3a

http://en.wikipedia.org/wiki/String_functions_%28programming%29#substring1

--

Adam