Please enable JavaScript to view this site.

QPR Knowledge Base 2023.1

  •      
  • Navigation: Developer's Guide > QPR API > The Object Model > QPR Metrics > SCModel Commands

    CloseModel

    Scroll Prev Top Next More

    Revision history:

    Introduced in QPR 7.2.1

     

    Closes the current model without any prompt. Changed views are saved before closing the model. If no model is open at the moment, this function does nothing and returns RV_SUCCESS.

     

    Synopsis:

     

    SCModel.CloseModel

     

    Parameters:

     

    None.

     

    Required Rights:

     

    None.

     

    Return Values:

    Below are listed the return values that this function can return:

     

    RV_SUCCESS

    RV_MODEL_NOT_OPEN

    RV_CANCELLED

     

    Example Procedure:

     

    iRet = SCModel.CloseModel