And just discovered the wonder of the NOT statement...
Please post your forehead smacking moment below.
When you have been using Gambas for years...
- Technopeasant
- Posts: 144
- Joined: Saturday 13th July 2019 6:50pm
- Location: Stony Plain, Alberta, Canada
- Contact:
Re: When you have been using Gambas for years...
Okay, what did you smack your forehead over?
Did you discover bit twiddling? The "true" true is -1?
Ced
Did you discover bit twiddling? The "true" true is -1?
Ced
.... and carry a big stick!
- Technopeasant
- Posts: 144
- Joined: Saturday 13th July 2019 6:50pm
- Location: Stony Plain, Alberta, Canada
- Contact:
Re: When you have been using Gambas for years...
More replacing:
If x = True Then
x = False
Else If x = False Then
x = True
End If
With:
x = Not x
The obvious simplicity is the head smacking factor.
If x = True Then
x = False
Else If x = False Then
x = True
End If
With:
x = Not x
The obvious simplicity is the head smacking factor.