When you have been using Gambas for years...

Post your Gambas programming questions here.
Post Reply
User avatar
Technopeasant
Posts: 140
Joined: Saturday 13th July 2019 6:50pm
Location: Stony Plain, Alberta, Canada
Contact:

When you have been using Gambas for years...

Post by Technopeasant »

And just discovered the wonder of the NOT statement...

:lol:

Please post your forehead smacking moment below.

:ugeek:
Technical director,
Piga Software
http://icculus.org/piga/
User avatar
Cedron
Posts: 156
Joined: Thursday 21st February 2019 5:02pm
Location: The Mitten State
Contact:

Re: When you have been using Gambas for years...

Post by Cedron »

Okay, what did you smack your forehead over?

Did you discover bit twiddling? The "true" true is -1?

Ced
.... and carry a big stick!
User avatar
Technopeasant
Posts: 140
Joined: Saturday 13th July 2019 6:50pm
Location: Stony Plain, Alberta, Canada
Contact:

Re: When you have been using Gambas for years...

Post 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.
Technical director,
Piga Software
http://icculus.org/piga/
Post Reply