[Gambas-user] stupid question about INC and boolean

Stefano Palmeri rospolosco at ...152...
Sat Apr 12 18:07:44 CEST 2008


Hi all. Hi, Benoit.

I was trying this code: 

' Gambas module file

PRIVATE $bBoolValue AS Boolean

PUBLIC SUB Main()

  DIM iCount AS Integer
  
  FOR iCount = 0 TO 10
  
    INC $bBoolValue
  
  NEXT 
  
  PRINT $bBoolValue

END

Finally, $bBoolValue is TRUE. Is it normal that INC
increase a Boolean value without giving any error?

Ciao,

Stefano




More information about the User mailing list