PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/wheels/tests/_assets/views/test/withthread.cfm

http://cfwheels.googlecode.com/
ColdFusion | 15 lines | 15 code | 0 blank | 0 comment | 0 complexity | 4f8e31ece9ea7ffe4f2aa4b36d208111 MD5 | raw file
 1<cfsilent>
 2<cfsavecontent variable="data">
 31|Per|Djurner
 4</cfsavecontent>
 5<cfset members = QueryNew("id,firstname,lastname")>
 6<cfloop list="#data#" index="i" delimiters="#chr(13)##chr(10)#">
 7<cfset QueryAddRow(members)>
 8<cfset QuerySetCell(members, "id", ListGetAt(i, 1, "|"))>
 9<cfset QuerySetCell(members, "firstname", ListGetAt(i, 2, "|"))>
10<cfset QuerySetCell(members, "lastname", ListGetAt(i, 3, "|"))>
11</cfloop>
12<cfset threadname = createuuid()>
13<cfthread name="#threadname#"><cfoutput query="members">#members.id#|#members.firstname#|#members.lastname#</cfoutput></cfthread>
14<cfthread action="join" name="#threadname#"/>
15</cfsilent><cfoutput>#cfthread[threadname].output#</cfoutput>