Steve-vfp9user
Programmer
Hello all
A field in MYTABLE is called QUOTEDEST which holds the path to the folder which stores any documentation in both .PDF and .DOC created (I've had much success with a previous thread here at
From a command button in the click event on a form, I am using the following in attempt to open and display a certain link folder to my record:
When I run the above, it opens the Windows "Documents" folder.
If I change the:
to the root folder
As a test, it opens the folder \myprogram
Additionally, a manual attempt at
Also opens the correct folder
The folders in the field QUOTEDEST which look like this \myprogram\2022 quotes\9-2022 a sample quote and definitely exist.
Any suggestions please?
Thank you
Steve Williams
VFP9, SP2, Windows 10
A field in MYTABLE is called QUOTEDEST which holds the path to the folder which stores any documentation in both .PDF and .DOC created (I've had much success with a previous thread here at
From a command button in the click event on a form, I am using the following in attempt to open and display a certain link folder to my record:
Code:
USE MYTABLE SHARED
GO mrecno && example 231
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
cFileName = "explorer"
cAction = "open"
cPath=ALLTRIM(QUOTEDEST)
ShellExecute(0,cAction,cFileName,cPath,"",1)
When I run the above, it opens the Windows "Documents" folder.
If I change the:
Code:
cPath=ALLTRIM(QUOTEDEST)
to the root folder
Code:
cPath="\myprogram"
As a test, it opens the folder \myprogram
Additionally, a manual attempt at
Code:
cPath="\myprogram\2022 quotes"
Also opens the correct folder
The folders in the field QUOTEDEST which look like this \myprogram\2022 quotes\9-2022 a sample quote and definitely exist.
Any suggestions please?
Thank you
Steve Williams
VFP9, SP2, Windows 10