Library.GetAnalysisErrorReport

This function creates a spreadsheet with a listing of analysis warnings and informational messages that occurred when running an analysis from SVB.

Syntax Parameters Return Value
Function Library.GetAnalysisErrorReport( _
    Optional MakeVisible As Boolean = True) As Spreadsheet
MakeVisible [in]

Whether or not to display the analysis error report. This parameter defaults to True.

Type: Boolean

Default value: True

Spreadsheet

SVB Example

Reviewing warnings from an analysis:

Option Base 1
Option Explicit
Sub Main
    Dim S1 As Spreadsheet
    'assigns the spreadsheet heart.sta to the spreadsheet object s1
    Set S1 = Open(Path & "\Examples\Datasets\Heart.sta")
    Dim newanalysis2 As Analysis
    'assigns the new analysis to the analysis object newanalysis2
    Set newanalysis2 = Analysis(scProcessAnalysis, S1)
    'sets the showwarnings property for the analysis to false
    newanalysis2.AnalysisOption.ShowWarnings = False
    'type of analysis - Weibull and reliability analysis
    With newanalysis2.Dialog
        .TypeOfAnalysis = scProWeibullAndReliabilityAnalysis
    End With
    'runs the analysis
    newanalysis2.Run
    'sets options for the analysis
    With newanalysis2.Dialog
        .SingleVariableStartStopTimesOrDates = True
        'variable used in analysis
        .Variables = "1-6 | 7"
        'sets the codes for complete and incomplete responses
        .CodeForCompleteResponses = "COMPLETE"
        .CodeForCensoredResponses = "CENSORED"
        .AddConstantTo0FailureCensoringTimes = False
    End With
    'runs the analysis with the options specified above
    newanalysis2.Run
    'obtains the error report and displays the messages 
    'inside a spreadsheet
    Application.GetAnalysisErrorReport(True)
End Sub