>The program doesn't compile if I try to put that code inside a procedure not outside of it... Does it have to be in a specific place, like a module?
The declare needs to be outside of a procedure declared form level or module level. Module level preferred.
The shellexecute call itself can be used in any method as long as it is within scope of the declare, hence the best place for the declare is in a module.
Brian Seekford
Seekford Solutions, Inc.http://www.SeekfordSolutions.comInternet ActiveX Controls and .NET Class Libraries.
SMTP/S FTP POP3/S HTTP/S SNTP MIME PING WHOIS TRACEROUTE NNTP DNS MX
Base64, UUEncode, yEnc, MD5, SHA1, URL, Quoted-Printable.
Resizer and Tooltips
Email Verification and more. Check us out!