FB_VER_MAJOR
- Source: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgDdFBVerMajor
- Last revised: 2016-02-10
Intrinsic define (macro value) set by the compiler
Syntax
` FB_VER_MAJOR
`
Description
__FB_VER_MAJOR__ will return the major version of FreeBASIC currently being used. For example, the major version is 0 for FreeBASIC 0.90, and will remain 0 until FreeBASIC version 1.0 is released.
Examples
start GeSHi
vb
Dim fbMajorVersion As Integer
Dim fbMinorVersion As Integer
Dim fbPatchVersion As Integer
fbMajorVersion = __FB_VER_MAJOR__
fbMinorVersion = __FB_VER_MINOR__
fbPatchVersion = __FB_VER_PATCH__
Print "Welcome to FreeBASIC " & fbMajorVersion & "." & fbMinorVersion & "." & fbPatchVersionend GeSHi
Differences from QB
- New to FreeBASIC
See also
__FB_VER_MINOR____FB_VER_PATCH__
Back to DocToc