Home > Archive > Programming with dBASE > October 2005 > GETDIRECTORY()









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author GETDIRECTORY()
clee

2005-10-07, 3:26 am

Hi, is there a way to modify the getdirectory() function to allow the user to create and delete folders? Right now, all they can do is just browse and retrieve folder names. Thanks.
*Lysander*

2005-10-07, 3:26 am

In article <YObYDHcyFHA.1236@news-server>, chucky3176@yahoo.ca says...

> Hi, is there a way to modify the getdirectory() function to allow the=20

user to create and delete folders? Right now, all they can do is just=20
browse and retrieve folder names. Thanks.

You could just use a "normal" explorer shell, like this:

(somewhere in the header of your application):
=3D=3D=3D=3D=3D=3D=3
D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3
D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D
=3D
extern cHandle ShellExecute(;
cHandle, cString, cString, cString, cString, CInt;
) Shell32;
from ;
"ShellExecute" + "A"


(in your getfolder()-routine...):
=3D=3D=3D=3D=3D=3D=3
D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3
D=3D
ShellExecute(form.hwnd, 'open', <startfoldername>, '', '', 1)
=20


--=20
ciao,
Andr=E9
~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~
Deutsche dBase-Konferenz dBKon 2005 ::: 11. bis 13. November 2005
Deutschsprachige Konferenz zu dBase und anderen Datenbanken
Info: www.dbase-konferenz.de
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com