Product Site

C.1.36. Error 40 - Incorrect call to routine.

Explanation:

An incorrect call to a routine was found. Possible causes:
  • You passed incorrect data (arguments) to the built-in or external routine.
  • You passed too many arguments to the built-in, external, or internal routine.
  • The external routine called was not compatible with the language processor.
If you did not try to call a routine, you might have a symbol or a string adjacent to a "(" when you meant it to be separated by a blank or other operator. The language processor would treat this as a function call. For example, write TIME(4+5) as follows: TIME*(4+5)

The associated subcodes are:
001

External routine "routine" failed.
003

Not enough arguments in invocation of routine; minimum expected is number.
004

Too many arguments in invocation of routine; maximum expected is number.
005

Missing argument in invocation of routine; argument argument_number is required.
011

function_name argument argument_number must be a number; found "value".
012

function_name argument argument_number must be a whole number; found "value".
013

function_name argument argument_number must be zero or positive; found "value".
014

function_name argument argument_number must be positive; found "value".
019

function_name argument 2, "value", is not in the format described by argument 3, "value".
021

function_name argument argument_number must not be a null string.
022

function_name argument argument_number must be a single character or null; found "value".
023

function_name argument argument_number must be a single character; found "value".
024

function_name argument argument_number must be a binary string; found "value".
025

function_name argument argument_number must be a hexadecimal string; found "value".
026

function_name argument argument_number must be a valid symbol; found "value".
027

function_name argument 1 must be a valid stream name; found "value".
028

function_name argument argument_number must be a character class name or a single character; found "value".
029

function_name conversion to format "value" is not allowed.
032

RANDOM difference between argument 1 ("value") and argument 2 ("value") must not exceed 999,999,999.
033

RANDOM argument 1 ("argument") must be less than or equal to argument 2 ("argument").
034

SOURCELINE argument 1 ("argument") must be less than or equal to the number of lines in the program (argument).
035

X2D argument 1 cannot be expressed as a whole number; found "value".
043

function_name argument number must be a single non-alphanumeric character or the null string; found "value".
044

function_name argument number, "value", is a format incompatible with the separator specified in argument number.
900

message.
901

Result returned by routine is longer than length: "value".
902

function_name argument argument_number must not exceed the whole number limit.
903

function_name argument argument_number must be in the range 0-99; found "value".
904

function_name argument argument_number must be one of values; found "value".
905

TRACE setting letter must be one of "ACEFILNOR"; found "value".
912

function_name argument argument_number must be a single-dimensional array; found "value".
913

function_name argument argument_number must have a string value; found "value".
914

Unknown VALUE function variable environment selector; found "value".
915

function_name cannot be used with QUEUE:.
916

Cannot read from a write-only property.
917

Cannot write to a read-only property or typelib element.
918

Invalid native function signature specification.
919

Argument argument must have a stem object or stem name value; found "value".
920

function_name argument name must be one of option; found "value".
921

Argument first option ("first value") must be greater than argument second option ("second value").
922

Stem argument does not have a valid count for element 0.
923

The operation is outside the size of the stem array ("value").
924

Stem element at position "position" is not set.
925

Argument argument must be an array object, a stem object, or a stem name value; found "value".