What results are you getting? Errors? No output?

I'm not a coder, but now that you've posted the source another member may be able to debug your code.