Difference between revisions of "Error Messages/40255"

 
Line 1: Line 1:
= Error Text =
+
[[Category: Error messages]]
  
 +
== Error text ==
 +
 +
<pre style="background:white; border:white; margin-left: 1em; font-style:italic">
 
  In call to function My_sum, the second parameter should be specified by name. After one parameter
 
  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.
 
  is supplied by name, any following parameters must also be specified by name.
 +
</pre>
  
= Cause =
+
== Cause ==
  
In a function call, after specifying one of the parameters by its name, all the following parameters to the function needs 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.  
+
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.
+
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:<br>
+
Function parameter declaration for <code>My_sum:</code>
<code>
+
:<code>(X, Y: number)</code>
{X, Y: number)
 
</code>
 
  
 
Function call:<br>
 
Function call:<br>
<code>
+
:<code>My_sum(X: 5, 9)</code>
My_sum(X: 5, 9)
 
</code>
 
  
= Remedies =
+
== Remedies ==
  
 
Call the function by specifying the parameter names to all the parameters following the named parameter.
 
Call the function by specifying the parameter names to all the parameters following the named parameter.
 +
 +
==See Also==
 +
* [[User-Defined Functions]]
 +
* [[Function calls and parameters]]
 +
* [[Associative vs. Positional Indexing]]

Latest revision as of 19:27, 24 March 2016


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.