GET_COMMAND_ARGUMENT

Platform

x64, Win32, .NET

Purpose

To get the command line argument at a given position.

Syntax

SUBROUTINE GET_COMMAND_ARGUMENT(NUMBER [, VALUE, LENGTH, STATUS] )
INTEGER NUMBER
CHARACTER(LEN=*) VALUE
INTEGER LENGTH, STATUS 

Description

NUMBER is an INTENT(IN) argument giving the position (in the range from zero to the number of arguments) of the argument for which information is required. A value of zero indicates the command name.

VALUE is an optional INTENT(OUT) argument that receives the argument at position NUMBER.

LENGTH in an optional INTENT(OUT) argument that receives the length of VALUE.

STATUS is an optional INTENT(OUT) argument that recieves the error state. A zero value indicates success. A value of -1 indicates that the length of VALUE is insufficient for the argument. A positive value indicates an error condition such as NUMBER being greater than the number of arguments.

Notes

This is an F2003 standard intrisic.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited