How to Use A Boolean Data Types in V6

Hello guys this sample code,i will show to you on how to use a Boolean Data Types on your
own Visual Basic Program

first you must Declare it,whether on a Module for the user can access it or used it all the time,
or in a Control Event like Load,click,Mose-move event etc...

 we can code it like this

Public Adrian As Boolean or 
Dim Adrian As Boolean

Note:
Boolean Data Types can only Holds a
True And False Statement

We can use it via code like shown below:
'i declare it via General declaration
Dim Adrian As Boolean

Private Sub Form_Load()
    Adrian=True
 End Sub

Private Sub Command1_click()
    If Adrian=True then
          MsgBox"Boolean is True"
    End If
End Sub

Happy Coding!!!!
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

Leave a comment

Copyright @ Codes-47.Blogspot.Com. Powered by Blogger.