Subject Re: Opening word doc and pdf from dbase
From Ivar B. Jessen <nospam@nospam.com>
Date Tue, 09 Feb 2016 23:37:45 +0100
Newsgroups dbase.getting-started

On Tue, 09 Feb 2016 16:54:42 -0500 Bami Onwu
Sender:  Bami Onwu <bamionwu@yahoo.com>
wrote the following in:
Newsgroup: dbase.getting-started
Subject: Re: Opening word doc and pdf from dbase:
MessageID:<dgRY7R4YRHA.2028@ip-AC1E04A7>
References:<Z76FM$zYRHA.3848@ip-AC1E04A7>
<u5hkbb1400n9di084q1rggvaqhve334rjf@4ax.com>
  
>Hi Ivar,
>
>Thank you but how do I use it to open a folder for me to select the particular file I want.
>
>Thank you.
>
>Bami.

If you know the folder in which the program is placed you just insert into
ShellExecute the full path to the folder and add the program name including
extension.

If you don't know the path to the folder you could use getFile() in the way
indicated below.

//-----
#include <WIN32API.H>
#include winuser.h
DO :include:WIN32API.PRG  

cPath = getFile()
ShellExecute(_app.framewin.hwnd, "open", cPath, null, null, SW_SHOW)
//-----

Ivar B. Jessen