\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{peterferdinand} \pdfinfo{ /Title (visual-basic-classic.pdf) /Creator (Cheatography) /Author (peterferdinand) /Subject (Visual Basic Classic 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}{A3A3A3} \definecolor{LightBackground}{HTML}{F3F3F3} \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{Visual Basic Classic Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{peterferdinand} via \textcolor{DarkBackground}{\uline{cheatography.com/57583/cs/15260/}}} \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}peterferdinand \\ \uline{cheatography.com/peterferdinand} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 27th March, 2018.\\ 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.39356 cm} x{3.58344 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Data types}} \tn % Row 0 \SetRowColor{LightBackground} Boolean & True / False \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Byte & 0 - 255 \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Integer & whole numbers \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Long & big integers \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Single & point numbers \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} Double & double accuracy \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} String & text \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} Variant & variable data type \tn % Row Count 8 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{visual basic 6 data types} \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}{variable declaration}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Dim}} \textless{}var\_name\textgreater{} {\bf{as}} \textless{}data-type\textgreater{}} \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{visual basic 6 variable declaration} \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}{Comments}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{'}}use the apostrophe} \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Visual basic 6 comment} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} x{4.4793 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Arithmetic operators}} \tn % Row 0 \SetRowColor{LightBackground} + & addition \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} - & subtraction \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} * & multiplication \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} / & division \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \textbackslash{} & integer division \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \textasciicircum{} & power \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{Visual basic arithmetic operators} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{3.43413 cm} x{1.54287 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Error handling}} \tn % Row 0 \SetRowColor{LightBackground} `On Error Resume Next` & Skip error \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{Visual basic 6 Error handling} \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}{Sub Procedures}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{[} {\bf{Public}} / {\bf{Private}} {]} {\bf{Sub}} \textless{}name\textgreater{} \{\{nl\}\}\textless{}Statements\textgreater{} \{\{nl\}\} {\bf{End Sub}}} \tn % Row Count 2 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Visual Basic 6 procedures. \newline Procedures are subprograms} \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}{Function Procedures}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{[}{\bf{Public}} / {\bf{Private}}{]} {\bf{Function}} \textless{}name\textgreater{} {\bf{(}}\textless{}arg\textgreater{}{\bf{)}} {\bf{As}} \textless{}result\textgreater{} \{\{nl\}\}\textless{}Statements\textgreater{}\{\{nl\}\} \textless{}name\textgreater{} {\bf{=}} \textless{}result\textgreater{} \{\{nl\}\}{\bf{End Function}}} \tn % Row Count 3 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Visual basic 6 function procedures. \newline Functions use a list of arguments (\textless{}arg\textgreater{}) to calculate a value (\textless{}result\textgreater{})} \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}{Example Program}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Private Sub}} btn\_Start\_Click ({\bf{ByVal}} ...)\{\{nl\}\} {\bf{{\emph{'}} Declaration of variables}} \{\{nl\}\}{\bf{Dim}} var1 {\bf{As}} {\bf{Single}}\{\{nl\}\}{\bf{Dim}} var2 {\bf{As}} {\bf{Single}}\{\{nl\}\} {\bf{{\emph{'}}Enter the variable}} \{\{nl\}\} var1 {\bf{=}} txt\_var1.{\bf{Text}}\{\{nl\}\} {\bf{{\emph{'}}Processing}} \{\{nl\}\} var2 {\bf{=}} var1 \{\{nl\}\} {\bf{{\emph{'}}Output of variable 2}} \{\{nl\}\} lbl\_var2.{\bf{Text}} {\bf{=}} var2 \{\{nl\}\} {\bf{End Sub}}} \tn % Row Count 8 (+ 8) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Visual Basic 6 example program} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{3.08574 cm} x{1.89126 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Mathematical functions}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Math}}.{\bf{Round}}(\textless{}x\textgreater{},\textless{}s\textgreater{}) & Round number \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{Math}}.{\bf{Pow}}(\textless{}base\textgreater{},\textless{}exp\textgreater{}) & Power number \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{Math}}.{\bf{Sqr}}(\textless{}var\textgreater{}) & Square root \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} \textless{}var1\textgreater{} {\bf{Mod}} \textless{}var2\textgreater{} & Division remainder \tn % Row Count 7 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{x number \newline s number of digits precision \newline base is base number \newline exp is exponent number \newline var1 is dividend \newline var2 is divisor \newline Visual basic 6 Mathematical function} \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}{Declare arrays}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Dim}} values ​​(0 {\bf{to}} n) {\bf{As}} \textless{}data type\textgreater{} \{\{nl\}\}{\bf{Dim}} values ​​() {\bf{As}} \textless{}data type\textgreater{} {\bf{=}} \{w1, w2, w3, w4\}} \tn % Row Count 3 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Visual basic 6 declare arrays} \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}{Go through array 1}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{For}} index {\bf{=}} 0 {\bf{To}} UBound(array) \{\{nl\}\} {\emph{' input array}} \{\{nl\}\} {\bf{Array}} (index) = ... \{\{nl\}\} {\bf{Next}}} \tn % Row Count 3 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{sequences}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/peterferdinand_1521974992_siniansung_1449046886_sequenz.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{visual basic statement sequences} \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}{input}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{'Input via an object with text properties\{\{nl\}\} \textless{}variable\textgreater{} {\bf{=}} \textless{}object name\textgreater{} .Text} \tn % Row Count 2 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Visual basic 6 input} \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}{output}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{'Output via an object with text property \{\{nl\}\}\textless{}Object name\textgreater{} .Text = \textless{}variable\textgreater{}} \tn % Row Count 2 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Visual basic 6 output} \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}{Selection}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/peterferdinand_1521978413_siniansung_1449047059_selektion.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Visual basic 6 selection} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} x{4.4793 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Comparison operators}} \tn % Row 0 \SetRowColor{LightBackground} = & equal \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \textless{}\textgreater{} & not equal \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \textless{} & less than \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \textgreater{} & bigger than \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \textless{}= & less than or equal to \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \textgreater{}= & greater than or equal to \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{Visual basic 6 comparison operators} \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 ... then}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{If}} \textless{}condition\textgreater{} {\bf{Then}}\{\{nl\}\} \textless{}Statements\textgreater{}\{\{nl\}\}{[}{\bf{ElseIf}} \textless{}condition\textgreater{} {\bf{Then}}{]} ' optional condition\{\{nl\}\}\textless{}Statements\textgreater{}\{\{nl\}\} {[}{\bf{Else}}{]} \{\{nl\}\}\textless{}Statements\textgreater{}\{\{nl\}\} {\bf{End If}}} \tn % Row Count 4 (+ 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}{Select Case}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/peterferdinand_1521979271_siniansung_1449047201_selectcase.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Visual basic 6 select case} \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}{Select Case}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Select Case}} \textless{}expression\textgreater{} \{\{nl\}\}{\bf{Case}} 0 'simple value \{\{nl\}\}\textless{}Statements\textgreater{} \{\{nl\}\} {\bf{Case}} 1 {\bf{To}} 5 'multiple values \{\{nl\}\}\textless{}Statements\textgreater{} \{\{nl\}\}{\bf{Case Is}} \textless{}5 'range of values \{\{nl\}\}\textless{}Statements\textgreater{} \{\{nl\}\}{\bf{Case Else}} \{\{nl\}\}\textless{}Statements\textgreater{} \{\{nl\}\}{\bf{End Select}}} \tn % Row Count 6 (+ 6) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Visual basic 6 Select Case} \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}{Iteration}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/peterferdinand_1522122132_siniansung_1449047438_iteration1.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Visual Basic 6 iteration} \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 Next}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{For}} \textless{}count\textgreater{} {\bf{=}} \textless{}start\textgreater{} {\bf{To}} \textless{}end\textgreater{} {\bf{Step}} \textless{}inc\textgreater{} \{\{nl\}\} \textless{}Statements\textgreater{} \{\{nl\}\} {\bf{Next}}} \tn % Row Count 2 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Visual basic 6 iteration 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 Each}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{For Each}} \textless{}element of all\textgreater{} {\bf{In}} \textless{}all collection\textgreater{} \{\{nl\}\} \textless{}Statements\textgreater{} \{\{nl\}\} {\bf{Next}}} \tn % Row Count 2 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Visual Basic 6 iteration 2} \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 Loop (head controlled)}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Do While}} \textless{}condition\textgreater{} \{\{nl\}\} \textless{}Statements\textgreater{} \{\{nl\}\} {\bf{Loop}} \{\{nl\}\} or \{\{nl\}\} {\bf{Do Until}} \textless{}condition\textgreater{} \{\{nl\}\} \textless{}Statements\textgreater{} \{\{nl\}\} {\bf{Loop}}} \tn % Row Count 3 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Visual basic 6 iteration 3} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}