Page 1 of 1
When you have been using Gambas for years...
Posted: Monday 5th August 2019 4:50pm
by Technopeasant
And just discovered the wonder of the NOT statement...
Please post your forehead smacking moment below.
Re: When you have been using Gambas for years...
Posted: Wednesday 14th August 2019 1:35pm
by Cedron
Okay, what did you smack your forehead over?
Did you discover bit twiddling? The "true" true is -1?
Ced
Re: When you have been using Gambas for years...
Posted: Sunday 25th August 2019 5:50pm
by Technopeasant
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.