Visresult_Object InfoCount Property

Returns, as an Integer value, the number of elements in the vision result object's numeric information array.

...visresult_object.InfoCount

Prerequisites

None

Parameters

None

Remarks

The visresult_object.InfoCount property returns the number of elements in the visresult_object.Info array for the current vision result.  The index values for accessing the Info array range from 0 to InfoCount - 1. Some tools return special numeric data, which is specific to the tool, in the visresult_object.Info array property. Some of these tools, for example the Edge Finder tool, can return a variable number of numeric values. The InfoCount property allows a program to determine how many values are actually returned. For information on what data a tool returns in this property and the index of the data, please consult the "PreciseVision Machine Vision System, Introduction and Reference Manual". In the detailed descriptions for each tool, properties that are returned in the Info array and their array index values are highlighted.

Examples

Dim vresult As VisResult
Dim ii As Integer
vresult = vobject.Result() ' Get a tool's results
For ii = 0 To vresult.InfoCount-1
Console.WriteLine(vresult.Info(ii))
Next ii

See Also

Vision Classes |vision_object.Info