Mehrdad Wrote: > Hm... why is this giving a forward reference error? In similar situations I suggest you to minimize your code, so both you ans us are able to better see the situation and the problem. Doing that you often don't need help. Bye, bearophile