I have been away from this for a long time and am going through a book to get myself back into the swing of things. I have searched the forums and google and can't seem to find the answer.
REM Create a function
FUNCTION Twelve()
Number12 AS INTEGER = 12
ENDFUNCTION Number12
REM Initialize a variable
Number AS INTEGER = 0
REM Add the function value to the variable
Number = Number + Twelve()
This is the code and I get an error message that says
you have hit a function declaration mid-program
I have tried wait key, end and loops in different places and nothing seems to work. Any ideas?
I am using the latest Blue IDE and the latest DBP upgrade. Not that release candidate but the latest stable upgrade.