"Fossies" - the Fresh Open Source Software Archive

Member "FreeBASIC-1.05.0-linux-x86_64/examples/manual/casting/boolean.bas" (31 Jan 2016, 462 Bytes) of package /linux/privat/FreeBASIC-1.05.0-linux-x86_64.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Visual Basic source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 '' examples/manual/casting/boolean.bas
    2 ''
    3 '' NOTICE: This file is part of the FreeBASIC Compiler package and can't
    4 ''         be included in other distributions without authorization.
    5 ''
    6 '' See Also: http://www.freebasic.net/wiki/wikka.php?wakka=KeyPgCbool
    7 '' --------
    8 
    9 ' Using the CBOOL function to convert a numeric value
   10 
   11 'Create an BOOLEAN variable
   12 Dim b As BOOLEAN
   13 
   14 'Convert a numeric value
   15 b = CBOOL(1)
   16 
   17 'Print the result, should return True
   18 Print b
   19 Sleep