title: Boolean functions in VB
body: <p>I'm working on a form in a VB6 application. I have a question if anyone can help.</p>
  
  <p>if i create a function like this...</p>
  
  <pre><code> Public Function CheckUser(userID as integer) as boolean
   CheckUser = False
   'do stuff here 
  
   CheckUser = True
   Exit Function
  </code></pre>
  
  <p>I'm calling this function from another procedure (same form) - can i use the Checkuser boolean value throughout the form, or is it only for this procedure? Basically I'm trying to return a boolean value back to my procedure after running this function - and don't really want to declare a new modular variable and go that way. Trying to keep it neat.</p>