title: How to add checkBox in Dialog and get value?
body: <p>I want to add a  <em>CheckBox</em> in my <strong>Dialog</strong>.</p>
  
  <p>I used this code:</p>
  
  <pre><code>Dialog dialog;
  DialogField dialogField;
  NoYesId checkValue;
  ;
  dialog = new Dialog("New dialog with checkBox");
  
  dialogField = dialog.addFieldValue(identifierStr(NoYes) , checkValue);
  checkValue= dialogField.value();
  dialog.run();
  info(strfmt("Value %1" , checkValue));
  </code></pre>
  
  <p>So, in <em>Debug</em> I see the value of the variable (checkValue) always NO .</p>
  
  <p>On web-tutorial I saw this code:</p>
  
  <pre><code>dialog.addFieldValue(typeid(NoYes), NoYes::Yes, "tip");
  </code></pre>
  
  <p>But I have an error <em>Method typeid not exist</em> .</p>
  
  <p>What is the way?
  Thanks all,</p>
  
  <p>enjoy!</p>