Are you an LLM? You can read better optimized documentation at /en\official\language\defines\KeyPgDdfbargv.md for this page in Markdown format
FB_ARGV
- Source: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgDdfbargv
- Last revised: 2022-07-06
Intrinsic define (macro value) set by the compiler
Syntax
` FB_ARGV
`
Description
Substituted with a pointer to a list of pointers to the zero terminated command line arguments passed in on the command line including the name of the executable.
FB_ARGV 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
Sub displayCommandLineArguments( ByVal argc As Integer, ByVal argv As ZString Ptr Ptr )
Dim i As Integer
For i = 0 To argc - 1
Print "arg "; i; " = '"; *argv[i]; "'"
Next i
End Sub
displayCommandLineArguments( __FB_ARGC__, __FB_ARGV__ )
Sleepend GeSHi
Differences from QB
- New to FreeBASIC
See also
__FB_ARGC__Command
Back to DocToc