Error Messages/40255

< Error Messages
Revision as of 19:27, 24 March 2016 by Bbecane (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Error text

 In call to function My_sum, the second parameter should be specified by name. After one parameter
 is supplied by name, any following parameters must also be specified by name.

Cause

In a function call, after specifying one of the parameters by its name, all the following parameters to the function need to be specified by their names. You specified one of the function parameters by its name, but did not specify all the following parameters by their names.

The following example would trigger this error as the parameter name, «X», is supplied but the following parameter name is not specified.

Function parameter declaration for My_sum:

(X, Y: number)

Function call:

My_sum(X: 5, 9)

Remedies

Call the function by specifying the parameter names to all the parameters following the named parameter.

See Also

Comments


You are not allowed to post comments.