MACROMEDIA COLFUSION MX 7-CFML Reference page 643

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

<cfoutput>
#mystring#<br><br>
</cfoutput>
The output is as follows:
four,
,five, nine,zero:;
nine,ten:, eleven:;twelve:;thirteen,
,four
The
function recognizes explicit spaces, tabs, or newline characters as the parameter
GetToken
delimiters (To specify a space character, the code is
newline character,
chr(10)
In the example string
A forced space between the substrings "
A literal space between "
A literal space between "
A forced space between "
In the following call against
the function uses the space character as the
<br>
<cfoutput>
GetToken(mystring, 3) is : #GetToken(mystring, 3)#
</cfoutput><br>
The output of this code is as follows:
GetToken(mystring, 3) is : nine,zero:;
The function finds the third delimiter, and returns the substring just before it that is between the
second and third delimiter. This substring is "
Example C: Consider the following code:
<cfset mystring2 = "four,"
&#chr(9)# & #chr(10)#
& ",five,nine,zero:;"
& #chr(10)#
& "nine,ten:,eleven:;twelve:;thirteen,"
& #chr(9)# & #chr(10)# & ",four">
<cfoutput>
#mystring2#<br>
</cfoutput>
The output is as follows:
four,
,five,nine,zero:;
nine,ten:,eleven:;twelve:;thirteen,
,four
.)
, there is:
mystring
four,"
and "
five,"
nine"
and "
ten:,"
eleven,"
and "
thirteen,"
, no spaces are specified in
mystring
; a tab character,
chr(32)
and
",five"
,four"
delimiter:
string
nine,zero:;".
; and a
chr(9)
(it is omitted), so
delimiters
GetToken
643

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents