Set CurrentFile

CurrentFile

The predefined element parameter CurrentFile contains the name of the file identifier to which output is currently directed.

ElementParameter CurrentFile {
    Range        :  AllFiles;
}

Definition

The element parameter CurrentFile contains the name of the file identifier to which output from the PUT and DISPLAY statements is currently directed.

Updatability

The value of CurrentFile can be modified both programmatically from within the AIMMS model and from within the end-user interface. As a result, the output from subsequent PUT and DISPLAY statements will be redirected to the newly specified file identifier.

Note

Output redirection can equivalently be accomplished using the PUT statement. The name of the physical file or window associated with a file identifier can be retrieved through the string parameter CurrentFileName.

See also

The string parameter CurrentFileName. The PUT statement is discussed in The PUT Statement of the Language Reference, the DISPLAY statement in The DISPLAY Statement