Get the statistics for a numeric field in the specified cursor.
Visual Basic |
---|
Public Function GetCursorFieldStatistics( _ ByVal cursor As String, _ ByVal nField As Long _ ) As String |
The field’s statistics as a string.
The returned string contains a set of name-value pairs. In a pair the separator between the name and value is a TAB character. The separator between the name-value pairs consists of a Carriage Return character followed by a Line Feed character. If printed, the statistics string looks like:
Rows 2
Sum 16.32
Min 7.31
Max 9.01
Range 1.7
Mean 8.16
Median 8.16
Variance 0.722499999999997
Deviation 0.849999999999998
If GetCursorFieldStatistics is called on a non-numeric field a string is returned in the above format but all values are "0".
If you intend using this method repeatedly on the same cursor you should not open the cursor as 'Forward Only'.
Available: GEO MM ME MD OD OM SISpy
Group:
Dim rv As String = GisGetCursorFieldStatistics ("MyCursor", 0)
Get the statistics of the first field of the cursor into a string.
Send comments on this topic.
Click to return to www.cadcorp.com
© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).