Hi,
Can someone tell me if we really need to have a RETURN with an ENDSUB
if the RETURN isn't actually returning a value?
I have read the help file, and I still can't decide!
Brian
			
			
			
				no you don't need it if you're not returning anything.
LarryMc
			
			
			
				Thanks, Larry,
I suspected that was the case, but the help file is a bit ambiguous. Help file says:
"The return value is optional only if your subroutine wasn't declared as having one"
It's the "return value" bit that threw me, rather than just saying "return"
Brian
			
			
			
				It seems like that there was a time when just a plain return was required and then the requirement was removed.
But, the way my memory is working right now I may have dreamed that. ;)
LarryMc
			
			
			
				I seem to remember the question being asked before in the forums.  It was asked due to the compiler complaining about not having a RETURN in a SUB.  The answer, if I remember right was that the compiler would put one in for you and complain about it.
Bill