Skip to content

ARGC

Argument Count for Thoroughbred Basic Startup

This numeric system variable returns the number of arguments specified in the operating system command that was issued to start this Thoroughbred Basic task.

ARGC

This function is generally available starting with release level 8.1B2.

If you start Thoroughbred Basic with the following command:

./basic T5 data IPLWIN

then the ARGC variable will have a value of 4. To see what you entered you can execute the following Thoroughbred Basic statement:

00010 FOR X = 0 TO ARGC - 1 ; PRINT ARG(X) ; NEXT X

This statement will print:

./Basic
T5
data
IPLWIN

ARG function

From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF