Share via


CommaIo.status Method

Retrieves the status of the last operation that was performed on the Io object.

Syntax

public IO_Status status()

Run On

Called

Return Value

Type: IO_Status Enumeration
The status of the last operation, in the form of a system enumeration.

Remarks

The return value is represented by the IO_Status system enumeration.

The range of possible IO_Status values varies among Io classes.

Examples

This example shows how to use the status method. However, this example will not compile in a job, because it must be run in the context of a class, form, or other object.

{ 
    // Create an Io object and perform some operations. 
    if (myIo.status() == IO_Status::OK) 
    { 
        // Go ahead - the last operation was successful. 
    } 
}

See Also

Reference

CommaIo Class