I thought about that after reading the first responce and i used what you put and it works perfectly. Thanks a bunch. I just got into using dlls today so i might have questions about that soon.
Thanks again