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
Note:
We can use it via code like shown below:
'i declare it via General declaration
Happy Coding!!!!
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 BooleanNote:
Boolean Data Types can only Holds a
True And False StatementWe 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!!!!
Tags:
Data Types,
Visual Basic 6.0
Leave a comment