eyeshield21
Programmer
what i want is if a user clicks/ right click on one of the data on the grid
opens a specific docx file.
opens a specific docx file.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
PROCEDURE SHELLEXEC
LPARAMETER lcLink, lcAction, lcParms
*
lcAction = IIF(EMPTY(lcAction), "Open", lcAction)
lcParms = IIF(EMPTY(lcParms), "", lcParms)
*
DECLARE INTEGER ShellExecute ;
IN SHELL32.dll ;
INTEGER nWinHandle, ;
STRING cOperation, ;
STRING cFileName, ;
STRING cParameters, ;
STRING cDirectory, ;
INTEGER nShowWindow
*
DECLARE INTEGER FindWindow ;
IN WIN32API ;
STRING cNull,STRING cWinName
*
RETURN ShellExecute(FindWindow(0, _SCREEN.caption), ;
lcAction, lcLink, ;
lcParms, SYS(2023), 1)
lcLaunchFile = '"'+SYS(5)+SYS(2003)+ALLTRIM(Table.Filename)+'"'
*
SHELLEXEC(lcLaunchFile)
Usually there, or sometimes in other places you will have a line that reads:
SET PROCEDURE TO <somefile.prg>
By doing this, you can save routines that you use over and over in your application. If you don't have one, I suggest, start one (I call mine simply "common.prg").