CasewareDocs

AddStatisticField

Adds an extra field for statistic operation.

Compatibility

Available as of IDEA version 10.3

Syntax

AddStatisticField(fieldName As String)

Parameter

fieldName

The maximum allowed number of characters is 40 (after trimming). The value cannot be set to an empty string. The value must be set to a valid field of the IDEA database.

Example

Set oMC = SmartContext.MacroCommands
Set oSC = oMC.SimpleCommands
ChartType = CHART_TYPE_LINE
'chartType can be set to any constant defined in CHART_TYPE_* list
Set oResultFile = oSC.CreateResultObject(sdbname, 1, True, 1)
Set oResultChart = oSC.AddGraphicalResult(oResultFile, ChartType)
If Not oResultChart Is Nothing Then
'set properties
End If

SmartContext.TestResultFiles.Add oResultFile

Please note

Graphical results are not supported for server IDEA databases, so the AddGraphicalResult function will return "Nothing" in this case.