DicomObjects Reference
DicomObjects Reference / DicomConnection Object / Status Property
In This Topic
    Status Property
    In This Topic
    Description
    Array of status values returned by last operation
    Property type
    Read-only property
    Syntax
    Visual Basic
    Public Property Status As Variant
    Remarks

    This array is cleared before each operation, and the number of elements therefore reflects the number of images sent.
    After a SendVerify operation, the element will contain only one value, so LastStatus is normally more appropriate.
    This property contain the result of an outgoing operation on the DicomConnection, and if Mode is doAsync or doNoSync, it is therefore valid only once the operation is signaled as completed, either through the ActionComplete event, use of the Wait method, or when isReady is true. 

    Note that Visual Basic can have a problem distinguishing between function parameters and array indices if an attempt is made to create the status array and access a specific status value in the same statement.  e.g.
    x=connection.status(1)
    will generate an error, stating that the numbers of parameters is incorrect.  If only one status value is expected, then the LastStatus property returns the same value in a simpler manner, but if multiple values are required, then the following solution is available:

    stat=connection.status
    x=stat(1)

    Similar problems may occur in other languages, and same solution is recommended.

    See Also