ayudenme porfavor necesito llamar un archivo desde vfp
ya intente esto:
DECLARE INTEGER ShellExecute IN SHELL32 INTEGER hwnd, STRING cOP, STRING cFile, STRING cParams, STRING cStartDir, INTEGER nShowCmd
DECLARE INTEGER GetDesktopWindow IN User32
LOCAL cFile, nWhnd, cStartPath, nx
aqui cFile=\'Examen.doc\'
IF FILE(cFile)
nWhnd=GetDesktopWindow()
aqui cStartPath=ADDBS(JUSTPATH(cFile))
nResult=ShellExecute(nWhnd, \'OPEN\', cFile, \'\', cStartPath, 1)
ENDIF
pero me parca erro de sintaxis en la partes que dice (aqui)
DECLARE INTEGER ShellExecute IN SHELL32 INTEGER hwnd, STRING cOP, STRING cFile, STRING cParams, STRING cStartDir, INTEGER nShowCmd
DECLARE INTEGER GetDesktopWindow IN User32
LOCAL cFile, nWhnd, cStartPath, nx
aqui cFile=\'Examen.doc\'
IF FILE(cFile)
nWhnd=GetDesktopWindow()
aqui cStartPath=ADDBS(JUSTPATH(cFile))
nResult=ShellExecute(nWhnd, \'OPEN\', cFile, \'\', cStartPath, 1)
ENDIF
pero me parca erro de sintaxis en la partes que dice (aqui)
