HI
Number of ways to do what you want.
1. Create buttons for each item and ADD CODE in its click event ..
oE=createobject("excel.application"
oE.visible = .t.
You can put this code anywhere in your application, provided it is executed before you start using this code.
(Note ShellExecute is case-sensitive in the above command.)
ShellExecute() lets you "execute" any pogram, document or shortcut. At its simplest, it can be used to launch an external application. For example, this command will launch Notepad:
Alternatively, you could use the following code to launch Notepad and have it open a file called Readme.txt:
ShellExecute(0,"open","Readme.txt","","",1)
The following will open Word with a new file...
ShellExecute(0,"open","WinWOrd.exe","","",1)
The following will open Excel with a new file...
ShellExecute(0,"open","Excel.exe","","",1)
SO in the buttons click event , you can put the code..
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, STRING cAction, STRING cFileName, ;
STRING cParams, STRING cDir, INTEGER nShowWin
ShellExecute(0,"open","Excel.exe","","",1)
Hope this helps you ramani
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.