Valid points BigAl, but the user wanted everything in just a click or a command call, and I don't know if there were many or just one layer, but thanks, is something to consider.
P.S. I didn't know that I could use "*m" instead of (strcat "*" "m") There still too much that I have to learn. And also I'd like you to give me some opinions on my programs but those are to sell, so can I send you emails?