Opening Files after Pressing Buttons

Hi, I'm new to this site, but i came here for help.

im trying to make a very basic program using Delphi7 and i'd like to know, what kind of script or code do i need to use to open any file, like a text or pdf because i want to assign it to a button.

and what script/code would i need so that one button opens up a different menu i made?

thanks.
This is a C and C++ site.

Try over at DaniWeb
http://www.daniweb.com/forums/forum124.html

Or over at Tek-Tips
http://www.tek-tips.com/threadminder.cfm?pid=102

(The function you are looking for is ShellExecute() or ShellExecuteEx(). http://www.tek-tips.com/threadminder.cfm?pid=102 )

Good luck!
thany-you very much.
Topic archived. No new replies allowed.