Are you an LLM? You can read better optimized documentation at /en\official\language\defines\KeyPgDdfbargc.md for this page in Markdown format
FB_ARGC
- Source: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgDdfbargc
- Last revised: 2022-07-05
Intrinsic define (macro value) set by the compiler
Syntax
` FB_ARGC
`
Description
Substituted with the number of arguments passed in on the command line including the name of the executable.
(for example : myprogram parm1, parm2, param3 --> __FB_ARGC__ = 4)
__FB_ARGC__ is the name of a parameter passed to the program's implicit main function, and therefore is only defined in the module level code of the main module for an application.
Examples
start GeSHi
vb
Dim i As Integer
For i = 0 To __FB_ARGC__ - 1
Print "arg "; i; " = '"; Command(i); "'"
Next iend GeSHi
Differences from QB
- New to FreeBASIC
See also
__FB_ARGV__Command
Back to DocToc