Cant get over this one yet, does it compile in AOZ ok for others or is it some bug?
Def Fn NAME$(A$)=Lower$(A$)
Print Fn NAME$("TEST")
Same code compiles and runs fine on the old Amos Pro but in AOZ I end up with ;
----
Compiling e:/UserFiles/Documents/AOZ Studio Applications/applications/fntest, emulation: PC, speed: fast.
First pass...
main.aoz:1:7: error: syntax error
main.aoz:1:12: error: syntax error
main.aoz:1:27: error: type mismatch
main.aoz:2:9: error: syntax error
main.aoz:2:14: error: type mismatch
main.aoz:2:14: error: syntax error
main.aoz:2:21: error: syntax error
main.aoz:2:21: error: syntax error
main.aoz:2:21: error: syntax error
main.aoz:1:12: warning: variable used without been declared
main.aoz:1:15: warning: variable used without been declared
main.aoz:2:9: warning: variable used without been declared
Task failed, no code generated...
----
I didn't think Def Fn worked with strings, thought it was just for integer calculations?
It works for me in AMOS Pro, but not in AOZ.
Thanks for confirming Paul. Yes, works as expected in Amos Pro.
Also, its one of the first examples snippets listed in the Barebones pdf , under DEF FN.
Ha! This one is actually not implemented. It is actually quite difficult to do... Always have been pushing it. I will do it for v0.9.2.3...
Ah ok! Thanks Francois... no problem. I'll check it out in the next vers.