title: How to check if string contains string in Pascal
body: <p>I tried the following code which supposed to check if a string contains spaces but I get an error.
  How else can I check that</p>
  
  <pre><code>if Index('some string',' ')&gt;1 then begin
     Result:= False;
   end
   else begin
        Result := True;  
   end;
  </code></pre>