Simple Boolean Declaration

R

Rod

I know this must be extrememly simple, but I can't find a ref for it. I
simply want to creat a boolean variable, something like "Dated" below:

Private Sub btnDialNumber_MouseUp(Button As Integer, Shift As Integer, X As
Single, Y As Single)
Dated As Boolean
Dated = False
If Day(Date) > 7 and Dated = FalseThen
...
End If
Dated = True
End If
End Sub
 
D

Dennis

Just put the word Dim in front

Private Sub btnDialNumber_MouseUp(Button As Integer, Shift As Integer, X As
Single, Y As Single)
Dim Dated As Boolean
........
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top