The explanation would be easier if we saw your code.
In reply to Re: why does location of function matter? by GotToBTru in thread why does location of function matter? by smartyollie