If I try the following, I get a blank page (no html at all). Foxweb does not generate an error, and everything seems to run correctly :
If I move the FUNCTION...ENDFUNC to the end, just after the closing body and html tags, the script runs correctly i.e. it returns "Hello World" in the browser :
I'm only guessing, but it seems that in the first example, the script stops executing completely when the RETURN statement is reached.
The second example is essentially the same code, only with the FUNCTION block being moved to the end of the page. Yet it runs fine.
Is this normal, is there some rule about where to place FUNCTION...RETURN ENDFUNC ? Have I missed something in the documentation ?
Thanks for your help.