|
CStats:GetErrMsg
The GetErrMsg method returns the error
message when a statistics calculation fails.
Syntax
|
sMsg = CStats:GetErrMsg()
|
On success,
the error message string sMsg is
returned.
If there was
no error, an empty string, "", is
returned.
Remarks
Each CStats calculation returns a value and
not a status code. If you wish to check the result of a
calculation, check
GetStatus for a non zero value. If it is non-zero,
you can fetch the error message using GetErrMsg. Note: This
method also returns an empty string if there is no CStats
object.
Example
The following script checks the
MinMaxClipMean calculation for success and prints an error
message if it failed:
|
S = new_stats()
|
|
|
S:Init( I, R )
|
|
|
nVal = S:MinMaxClipMean()
|
|
|
if S:GetStatus() then
|
|
|
Msg(
S:GetErrMsg() )
|
|
|
end
|
|
Related Topics
CStats class
GetStatus
Mira Pro x64 Script User's Guide, v.8.76 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.
|