\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{CChain (Veloz)} \pdfinfo{ /Title (coldfusion-cfscript.pdf) /Creator (Cheatography) /Author (CChain (Veloz)) /Subject (ColdFusion CFScript Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{274550} \definecolor{LightBackground}{HTML}{F8F9F9} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{ColdFusion CFScript Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{CChain (Veloz)} via \textcolor{DarkBackground}{\uline{cheatography.com/7947/cs/1169/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}CChain (Veloz) \\ \uline{cheatography.com/veloz} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 31st July, 2013.\\ Updated 16th March, 2023.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{x{1.4931 cm} x{3.4839 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Basics}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Set Variable}} & foo = "bar"; \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{Define Array}} & arrBeer = {[}"Guinness", "Harp", "Boddingtons"{]}; \textasciicircum{}//CF10\textasciicircum{} \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} {\bf{Define Struct}} & structBeer = \{isGood:"heck yes"\}; \textasciicircum{}//CF10\textasciicircum{} \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} {\bf{CFAbort}} & abort; \tn % Row Count 8 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{CFDump}} & writeDump(beer); \tn % Row Count 9 (+ 1) % Row 5 \SetRowColor{white} {\bf{CFInclude}} & include "template.cfm"; \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{CFOutput}} & writeOutput("I like " \& beer); \tn % Row Count 13 (+ 2) % Row 7 \SetRowColor{white} {\bf{CFParam}} & param name="variables.pint" default="1"; \textasciicircum{}//CF9\textasciicircum{} \tn % Row Count 15 (+ 2) % Row 8 \SetRowColor{LightBackground} {\bf{CFSetting}} & setting \seqsplit{enablecfoutputonly="true"} requesttimeout="180" showdebugoutput="no"; \textasciicircum{}//CF10\textasciicircum{} \tn % Row Count 19 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Comments}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{//write single line comments like this}} \newline % Row Count 1 (+ 1) /* {\emph{multi-line comments}} \newline % Row Count 2 (+ 1) {\emph{are done like this}} */% Row Count 3 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{single line comments can follow code: \newline var a = 1; {\emph{// set up array counter}} \newline \newline /* {\emph{code can follow multi-line comments:}} \newline {\emph{like this}} */ var beer = "tasty";} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{If / Else If / Else}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{if (beer EQ "Guinness") \{ \newline % Row Count 1 (+ 1) ~~~~writeOutput("It's Stout"); \newline % Row Count 3 (+ 2) \} else if (beer IS "Harp") \{ \newline % Row Count 4 (+ 1) ~~~~writeOutput("It's Lager"); \newline % Row Count 6 (+ 2) \} else \{ \newline % Row Count 7 (+ 1) ~~~~writeOutput("It might be beer..."); \newline % Row Count 9 (+ 2) \}% Row Count 10 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Switch / Case}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{switch(beer) \{ \newline % Row Count 1 (+ 1) ~~~~case "Guinness": \newline % Row Count 2 (+ 1) \seqsplit{~~~~~~~~writeOutput("It's} Stout"); \newline % Row Count 4 (+ 2) ~~~~~~~~break; \newline % Row Count 6 (+ 2) ~~~~case "Harp": case "Stella": \newline % Row Count 8 (+ 2) \seqsplit{~~~~~~~~writeOutput("It's} a Lager"); \newline % Row Count 10 (+ 2) ~~~~~~~~break; \newline % Row Count 12 (+ 2) ~~~~default: \newline % Row Count 13 (+ 1) \seqsplit{~~~~~~~~writeOutput("It's} beer, I think..."); \newline % Row Count 15 (+ 2) \}% Row Count 16 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Try / Catch / Throw / Finally / Rethrow}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{try \{ \newline % Row Count 1 (+ 1) ~~~~throw(message="Oops", detail="xyz"); \textasciicircum{}//CF9\textasciicircum{} \newline % Row Count 3 (+ 2) \} catch (any e) \{ \newline % Row Count 4 (+ 1) ~~~~writeOutput("Error: " \& e.message); \newline % Row Count 6 (+ 2) ~~~~rethrow;\textasciicircum{}//CF9\textasciicircum{} \newline % Row Count 7 (+ 1) \} finally \{\textasciicircum{}//CF9\textasciicircum{} \newline % Row Count 8 (+ 1) ~~~~writeOutput("I always run - even if no error is thrown"); \newline % Row Count 10 (+ 2) \}% Row Count 11 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Call Component Function (CF10)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{result = invoke( \newline % Row Count 1 (+ 1) ~~~~"beermenu.cfc.beer", {\emph{// component}} \newline % Row Count 3 (+ 2) ~~~~"getRatings", {\emph{// function}} \newline % Row Count 5 (+ 2) ~~~~\{beer\_id=id\} {\emph{// arguments}} \newline % Row Count 7 (+ 2) );% Row Count 8 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{the return of the function is stored in \#result\#} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{FOR Loops}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{for (i=1;i LTE arrayLen(array);i=i+1) \{ \newline % Row Count 1 (+ 1) ~~~~writeOutput(array{[}i{]}); \newline % Row Count 3 (+ 2) \}% Row Count 4 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{FOR IN Loops}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{struct = \{\}; \newline % Row Count 1 (+ 1) struct.one = "1"; \newline % Row Count 2 (+ 1) struct.two = "2"; \newline % Row Count 3 (+ 1) for (key in struct) \{ \newline % Row Count 4 (+ 1) ~~~~writeOutput(key); \newline % Row Count 5 (+ 1) \}% Row Count 6 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\emph{OUTPUT: onetwo}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{WHILE Loop}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{x = 0; \newline % Row Count 1 (+ 1) while (x LT 5) \{ \newline % Row Count 2 (+ 1) ~~~~x = x + 1; \newline % Row Count 3 (+ 1) ~~~~writeOutput(x); \newline % Row Count 4 (+ 1) \}% Row Count 5 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\emph{OUTPUT: 12345}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{DO WHILE Loop}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{x = 0; \newline % Row Count 1 (+ 1) do \{ \newline % Row Count 2 (+ 1) ~~~~x = x+1; \newline % Row Count 3 (+ 1) ~~~~writeOutput(x); \newline % Row Count 4 (+ 1) \} while (x LTE 0);% Row Count 5 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\emph{OUTPUT: 1}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Adobe ColdFusion}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/veloz_1375228719_cf-marquee-family.jpg}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Database Queries (CF9)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{// create a query object and parameters}} \newline % Row Count 1 (+ 1) qry = new query( \newline % Row Count 2 (+ 1) ~~~~name="qImports", \newline % Row Count 3 (+ 1) \seqsplit{~~~~datasource=variables.dsn}, \newline % Row Count 4 (+ 1) \seqsplit{~~~~username=variables.user}, \newline % Row Count 5 (+ 1) \seqsplit{~~~~password=variables.password} \newline % Row Count 7 (+ 2) ); \newline % Row Count 8 (+ 1) qry.addParam( \newline % Row Count 9 (+ 1) ~~~~name="beer\_id", \newline % Row Count 10 (+ 1) \seqsplit{~~~~cfsqltype="cf\_sql\_varchar"}, \newline % Row Count 12 (+ 2) \seqsplit{~~~~value=variables.beer\_id} \newline % Row Count 13 (+ 1) ); \newline % Row Count 14 (+ 1) doQry = qry.execute(sql=" \newline % Row Count 15 (+ 1) ~~~~SELECT b.name, \newline % Row Count 16 (+ 1) ~~~~~~~~m.name as brewer, \newline % Row Count 18 (+ 2) ~~~~~~~~b.alcohol, \newline % Row Count 20 (+ 2) ~~~~~~~~b.IBU, \newline % Row Count 22 (+ 2) ~~~~~~~~b.ratings \newline % Row Count 24 (+ 2) ~~~~FROM beers as b \newline % Row Count 25 (+ 1) ~~~~JOIN brewers m ON b.brewer = m.id \newline % Row Count 27 (+ 2) ~~~~WHERE id = :beer\_id and import = true \newline % Row Count 29 (+ 2) "); \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Database Queries (CF9) (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{// put the results into the qBeer variable}} \newline % Row Count 1 (+ 1) qBeer = doQry.getResult();% Row Count 2 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Array Iteration (CF10)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{arrayEach(arrBeer, function(i) \{ \newline % Row Count 1 (+ 1) ~~~~writeOutput("I like " \& i \& "\textless{}br/\textgreater{}"); \newline % Row Count 3 (+ 2) \});% Row Count 4 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Array Filtering (CF10)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{delicious = arrayFilter(arrBeer, function(b) \{ \newline % Row Count 1 (+ 1) ~~~~return b.alcohol \textgreater{}= 5 || b.brand EQ "Franziskaner"; \newline % Row Count 3 (+ 2) \});% Row Count 4 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Defining Components}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{component extends="Beer" output="false" \{ \newline % Row Count 1 (+ 1) ~~~~property name="variety" type="string"; \newline % Row Count 3 (+ 2) ~~~~public boolean function isGood() \{ \newline % Row Count 5 (+ 2) ~~~~~~~~return true; \newline % Row Count 7 (+ 2) ~~~~\} \newline % Row Count 8 (+ 1) ~~~~private void drink(required numeric pint) \{ \newline % Row Count 10 (+ 2) ~~~~~~~~//do stuff \newline % Row Count 12 (+ 2) ~~~~\} \newline % Row Count 13 (+ 1) \}% Row Count 14 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Defining Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{remote string function drink(required numeric pints) \{ \newline % Row Count 2 (+ 2) ~~~~var dry = 0; \newline % Row Count 3 (+ 1) ~~~~if (arguments.pints GT dry) \{ \newline % Row Count 5 (+ 2) ~~~~~~~~return "beer"; \newline % Row Count 7 (+ 2) ~~~~\} else \{ \newline % Row Count 8 (+ 1) ~~~~~~~~return "no beer"; \newline % Row Count 10 (+ 2) ~~~~\} \newline % Row Count 11 (+ 1) \}% Row Count 12 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Transactions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{transaction \{ \newline % Row Count 1 (+ 1) ~~~~//do stuff \newline % Row Count 2 (+ 1) ~~~~if (good) \{ \newline % Row Count 3 (+ 1) ~~~~~~~~transaction action="commit"; \newline % Row Count 5 (+ 2) ~~~~else \{ \newline % Row Count 6 (+ 1) ~~~~~~~~transaction action="rollback"; \newline % Row Count 8 (+ 2) ~~~~\} \newline % Row Count 9 (+ 1) \}% Row Count 10 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Database Stored Procedures (CF9)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{// instantiate the SP}} \newline % Row Count 1 (+ 1) sp = new storedproc( \newline % Row Count 2 (+ 1) \seqsplit{~~~~datasource=variables.dsn}, \newline % Row Count 3 (+ 1) \seqsplit{~~~~procedure="getBeerRating"}, \newline % Row Count 5 (+ 2) \seqsplit{~~~~username=request.dsnuser}, \newline % Row Count 6 (+ 1) \seqsplit{~~~~password=request.dsnpassword} \newline % Row Count 8 (+ 2) ); \newline % Row Count 9 (+ 1) {\emph{// set the input var}} \newline % Row Count 10 (+ 1) sp.addParam( \newline % Row Count 11 (+ 1) ~~~~type="in", \newline % Row Count 12 (+ 1) \seqsplit{~~~~cfsqltype="cf\_sql\_integer"}, \newline % Row Count 14 (+ 2) ~~~~value=id \newline % Row Count 15 (+ 1) ); \newline % Row Count 16 (+ 1) {\emph{// set the output var}} \newline % Row Count 17 (+ 1) sp.addParam( \newline % Row Count 18 (+ 1) ~~~~type="out", \newline % Row Count 19 (+ 1) \seqsplit{~~~~cfsqltype="cf\_sql\_bit"}, \newline % Row Count 20 (+ 1) ~~~~variable="rating" \newline % Row Count 21 (+ 1) ); \newline % Row Count 22 (+ 1) {\emph{// execute the SP call}} \newline % Row Count 23 (+ 1) result = sp.execute(); \newline % Row Count 24 (+ 1) {\emph{// store the SP return}} \newline % Row Count 25 (+ 1) rating = \seqsplit{result.getprocOutVariables().rating;}% Row Count 26 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}