Please enable JavaScript to view this site.

QPR Knowledge Base 2023.1

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

    GetObject

    Scroll Prev Top Next More

    Revision history:

    Introduced in QPR 7.3.1

     

    Fetches the following object:

    MODEL: Returns current SCModel object.

     

    Synopsis:

     

    SCApplication.GetObject(ObjectName, out Object)

     

    Parameters:

     

    ObjectName: String. Currently only MODEL is supported here.

    out Object: Variant. Variant for the returned object.

     

    Required Rights:

     

    None.

     

    Return Values:

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

     

    RV_APPLICATION_QUIT_CALLED

    RV_NOT_CONNECTED_TO_SERVER

    RV_NOT_AUTHENTICATED

    RV_INVALID_PARAMETER

    RV_SUCCESS

     

    Example Procedure:

     

    iRet = SCApplication.GetObject("MODEL", oModel)