Clearing results from an Analysis

The CLEARRESULTS method of the ObjMethod function can be used to clear all values from the results section of an analysis.

In this example, the CLEARRESULTS method is applied to an analysis to clear all results values.


Dim oResults As DataSet = ObjMethod("", "", "ObjectMethod", "CLEARRESULTS", 
Nothing)

To invoke this from the Analysis form directly, this profile can be used for a custom button on the Analysis form:


Clear Results;AE;CLRANALYRES;0^{%OBJECTSYMBOL};{%SKEY}

Then an action called CLRANALYRES can be created. Add the previous workflow example to the start event of the action.

This command can also be invoked from the calcprecalc VB script hook.


Public Function calcprecalc()
Dim oResults As DataSet = ObjMethod("", "", "ObjectMethod", "CLEARRESULTS",
Nothing)
End Function