sysArg

Category: System

Syntax:

sysArg:String(index:Int)


Parameters

Returns

String



Summary

Returns one argument from the command line: 1 is the first after the program's name, 0 the program itself.

View detailed documentation online



Example
UseConsole
Import "BBRuntime64.decls"

Function Main()
    If sysArgCount() = 0 Then
        Print "Usage: MyTool <file>"
    Else
        Print "Opening " & sysArg(1)
    EndIf
    Return False
EndFunction

BambooBasic © 2026 Michael Denathorn