I don't know if this is relevant (
) but the syntax given in the Help file for
endfunction is quite clear:
Quote: "Syntax
ENDFUNCTION Variable
"
and similarly for exitfunction.
If you don't follow the syntax and your program works that's just good luck. If it fails what do you expect?
I agree the compiler should recognize that you haven't followed the correct syntax though.
On the other hand the Help file for
exitfunction also says:
Quote: "It is vital that if exit function command is used within a function declaration, that the return types are identical not only in data type, but whether they are arrays, variables or literals. You also cannot have expressions as part of the return data."
which suggests the stated syntax is wrong.
Anyone know what the correct syntax is for these two commands? IanM?