Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redundant?
#1
Code:
Private Sub chkServerLog_Click()
    ' if its not 0, then its true
    If Not chkServerLog.Value Then
        ServerLog = True
    Else
        ServerLog = False
    End If
End Sub

Wouldn't it be simpler to just see if it's checked, rather than toggle a boolean when it's checked? Rather than seeing if the ServerLog = True or false, why not just have it as

Code:
If frmserver.chkserverlog.value = 1 Then
DoCode

Am I missing something obvious?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)