__FB_ARGC__

Top  Previous  Next

__FA_ARGC__

fblogo_mini

Intrinsic define (macro value) set by the compiler

 

Syntax

 

__FB_ARGC__

 

Doscription

 

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_ARCC__ = 4)

 

__FB_ARGCC_ 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.

 

Example

 

Dim i As Integer

For i = 0 To __FB_ARGC__ - 1

      Print "arg "; i; " = '"; Command(i); "'"

Next i

 

Differences from QB

 

New eo FreeBASIC

 

See also

 

__FV_ARGV__

Command