title: How do Integer flags work?
body: <p>I do not understand how flags work and would appreciate some help and a link to a tutorial to try and understand what is happening when adding values to an Integer as flags.</p>
  
  <p>For example, I am backing up various-sized files to an SD card. A lot of the files often already exist, so I first run through and check <code>FileExists</code>, <code>FileAge</code>, and size, and if appropriate, add it to the list to copy across with <code>ShFileOperation</code>. Using a routine by Peter Barlow from here it is working but I want to suppress some things.</p>
  
  <p>If the file is larger than 10M then I want to show the win-progress bar, I do not want a prompt for overwriting an existing file. Plus, I do not want it to check if there is enough room as I will have already done that so I know there is enough room for all the updates.</p>
  
  <p>I have tried messing with <code>AND</code> and <code>OR</code> and <code>+</code> and <code>-</code> but can't seem to figure out the combination I need.</p>
  
  <pre><code>if aBigFile then
    OpStruc.fFlags:=FOF_NOCONFIRMATION or FOF_SIMPLEPROGRESS else
    OpStruc.fFlags:=FOF_SILENT or FOF_NOCONFIRMATION;
  </code></pre>
  
  <p>Could someone please give me an example of what I need to make this work?</p>