title: CStr() Str() .ToString()
body: <p>I just want to know, what exactly the difference between the functions <strong>CStr()</strong> and <strong>Str()</strong> and also the <strong>.ToString()</strong>? With the code provided below, what's the difference between the three?</p>
  
  <pre><code>Label1.Text = CStr(Int(Rnd() * 10))
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Label1.Text = Str(Int(Rnd() * 10))
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Label1.Text = Int(Rnd() * 10).ToString
  </code></pre>
  
  <p>When I used this condition</p>
  
  <pre><code>If Label1.Text = "7" Then
       'Some code here
  End If
  </code></pre>
  
  <p>...the <strong>Str()</strong> function didn't work here. What difference did it make?
  thanks in advance :))</p>