Project

General

Profile

Bug #78

Def FN causes syntax error, and array not dimensioned error

Added by Anonymous over 4 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Target version:
Start date:
01/25/2020
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

User defined functions aren't working.

Example: From AMOS Pro User Guide, page 05.01.06.

Def Fn NAME$(A$)=Lower$(A$)
Print Fn NAME$("TheName")
Def Fn X(A,B,C)=A*B*C
Print Fn X(1,2,3)

Error results:

First pass...
main.aoz:1:7: error: syntax error
main.aoz:1:12: error: non dimensionned array
main.aoz:3:7: error: syntax error
main.aoz:3:8: error: non dimensionned array

{}
Task failed, no code generated...

Also available in: Atom PDF