Difference between revisions of "Error Messages/40679"
AManandhar (talk | contribs) (Created page with '= Error Message Examples = In call to function Expecting_handle, the second parameter, y, should evaluate to a handle. = Cause = You are passing a non handle as a parameter t…') |
|||
(6 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | + | == Error message examples == | |
− | + | :<code>''In call to function Expecting_handle, the second parameter, «y», should evaluate to a handle.''</code> | |
− | You are passing a non handle as a parameter to a function that is expecting the parameter to be a handle. | + | == Cause == |
+ | You are passing a non handle as a parameter to a function that is expecting the parameter to be a handle. Function parameters that have been qualified by [[Function_Parameter_Qualifiers#Handle|'handle']] expects a handle of an object and produces this error if the parameter passed to the function is not a handle. | ||
− | The following function expects the second parameter, | + | The following function expects the second parameter, «y», to be a handle and throws this error when a non handle ([[Null]], number or reference) is passed to the function. |
− | < | + | :<code>Function Expecting_handle(x: positive; y: handle)</code> |
− | Function Expecting_handle( x: positive; y: handle ) | ||
− | </code> | ||
+ | == Remedies == | ||
+ | Correct the parameter passed to the function to be a handle. | ||
− | + | Handle of an object can be obtained by using the function [[Handle#Handle.28v.29|Handle(object)]] or [[Handle#Function_HandleFromIdentifier|HandleFromIdentifier(text)]]. | |
− | |||
− | |||
− | + | ==See Also== | |
+ | * [[Function calls and parameters]] | ||
+ | * [[Function Parameter Qualifiers]] | ||
+ | * [[Objects and Values]] | ||
+ | * [[Handle]] |
Latest revision as of 01:24, 12 March 2016
Error message examples
In call to function Expecting_handle, the second parameter, «y», should evaluate to a handle.
Cause
You are passing a non handle as a parameter to a function that is expecting the parameter to be a handle. Function parameters that have been qualified by 'handle' expects a handle of an object and produces this error if the parameter passed to the function is not a handle.
The following function expects the second parameter, «y», to be a handle and throws this error when a non handle (Null, number or reference) is passed to the function.
Function Expecting_handle(x: positive; y: handle)
Remedies
Correct the parameter passed to the function to be a handle.
Handle of an object can be obtained by using the function Handle(object) or HandleFromIdentifier(text).
See Also
Comments
Enable comment auto-refresher