Mintoris Forum

Author Topic: Using user defined functions  (Read 771 times)

sraffens

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 220
Using user defined functions
« on: Apr 14, 2017, 11:10 PM »
I am getting error when I have functions

sub opop$()
  return "5"
end sub

if opop$() == "6" then ' error
  print "true"
endif

xxpaused = val(opop$()) ' error

<6>   9: ()opop$₄ "6" == ‹8› if₂
↳ Syntax error. Encountered end of line when expecting more syntax.
Too many parameters. More parameters were specified than allowed by this subroutine.

Expecting a close parenthesis )
Found  then
↳ Too many parameters. More parameters were specified than allowed by this subroutine.

<9>  13: xxpaused ( ()opop$₄ ) val :=
↳ Syntax error. Encountered end of line when expecting more syntax.
Too many parameters. More parameters were specified than allowed by this subroutine.

Expecting a close parenthesis )
Found ⁅ end of line ⁆
↳ Too many parameters. More parameters were specified than allowed by this subroutine.