The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Summary:
|
Def Variable type conflict
|
Cause:
|
- The number/type/order of parameters passed in a user-defined function does not match the number required by the Def statement.
- Inline variable setting within user defined function calls should be set with :=, not =. This does not present a problem until the function call is nested within other logic such as an if statement.
|
Remedy:
|
- Either match the number of parameters to that specified in the Def statement or change the Def statement.
- Change lines like:
if fnX(y=5)=-1 then let z=2
to
if fnX(y:=5)=-1 then let z=2
|