<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Base16 Eighties (Light)</title>
<style type="text/css">
/* highlight theme: Base16 Eighties Light */
body.hl { background-color:#f2f0ec; }
pre.hl { color:#515151; background-color:#f2f0ec; font-size:16pt; font-family:'Courier New',monospace;}
.hl.num { color:#f99157; }
.hl.esc { color:#66cccc; }
.hl.str { color:#99cc99; }
.hl.pps { color:#66cccc; }
.hl.slc { color:#a09f93; font-style:italic; }
.hl.com { color:#a09f93; font-style:italic; }
.hl.ppc { color:#d27b53; }
.hl.opt { color:#515151; }
.hl.ipl { color:#f99157; }
.hl.lin { color:#747369; }
.hl.kwa { color:#cc99cc; font-weight:bold; }
.hl.kwb { color:#6699cc; font-weight:bold; }
.hl.kwc { color:#f2777a; font-weight:bold; }
.hl.kwd { color:#ffcc66; font-weight:bold; }
.hl.kwe { color:#d27b53; font-weight:bold; }
.hl.kwf { color:#f99157; font-weight:bold; }
</style>
</head>
<body class="hl">
<pre class="hl"><span class="hl lin"> 1 </span><span class="hl slc">; PureBASIC 5.60 Example</span>
<span class="hl lin"> 2 </span>
<span class="hl lin"> 3 </span><span class="hl kwa">For</span> i<span class="hl opt">=</span><span class="hl num">5</span> <span class="hl kwa">To</span> <span class="hl num">1</span> <span class="hl kwa">Step</span> <span class="hl opt">-</span><span class="hl num">1</span>
<span class="hl lin"> 4 </span> TEXT$ <span class="hl opt">=</span> <span class="hl str">"Iteration number: "</span> <span class="hl opt">+</span> <span class="hl kwc">Str</span>(i) <span class="hl opt">+</span> <span class="hl str">~"</span><span class="hl esc">\n\n</span><span class="hl str">Do you wish to continue?"</span>
<span class="hl lin"> 5 </span> UserChoice <span class="hl opt">=</span> <span class="hl kwc">MessageRequester</span>(<span class="hl str">"Countdown Dialog"</span>, TEXT$, <span class="hl kwb">#PB_MessageRequester_YesNo</span> <span class="hl opt">|</span> <span class="hl kwb">#PB_MessageRequester_Info</span>)
<span class="hl lin"> 6 </span> <span class="hl kwa">If</span> UserChoice <span class="hl opt">=</span> <span class="hl kwb">#PB_MessageRequester_No</span>
<span class="hl lin"> 7 </span> <span class="hl kwa">Break</span>
<span class="hl lin"> 8 </span> <span class="hl kwa">EndIf</span>
<span class="hl lin"> 9 </span><span class="hl kwa">Next</span>
</pre>
</body>
</html>
<!--HTML generated by highlight 3.43, http://www.andre-simon.de/-->