sub/endsub not working?

2

nitrofurano 2022-12-19 22:58

this example shows a syntax error when calling a sub

pset.nx | Open in app
2022-12-19 22:58

GAMELEGEND 2022-12-19 23:35

There is no error when calling a sub because you are not calling the sub in the first place to call a sub you have to put CALL before the name of the sub program.

CALL PSET(10+I,20+I) instead of PSET(10+I,20+I)


GAMELEGEND 2022-12-19 23:43 (Edited)

Without CALL LowRes thinks PSET is a variable that is why there is an error because there is no equal's sign

and there is also the comma between what is supposed to be the parameters when it thinks it is a variable


nitrofurano 2022-12-20 00:21

thanks! it works fine! :)


Log in to reply.