How to show a Folder

How to show a Folder

Postby Piscicelli Zingoni » Mon Mar 13, 2006 12:26 pm

Hi to all,
I need to show (like explorer does ) a folder to the customer where i placed same files.

Example: Folder to show is C:\MYDATA

tks

Piscicelli/Zingoni
Piscicelli Zingoni
 
Posts: 76
Joined: Wed Oct 12, 2005 5:52 pm
Location: Milan,Italy

Postby James Bott » Mon Mar 13, 2006 2:14 pm

If you just want the user to select a file I would use cGetFile().

cGetFile( <cFileMask>, <cTitle>, [<nDefaultMask>], [<cInitialDirectory>], [lSave], [lLongNames], [nFlags] )

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Piscicelli Zingoni » Mon Mar 13, 2006 2:18 pm

No, i need only to show the files as IEXPLORER DOES

Tks
Piscicelli Zingoni
 
Posts: 76
Joined: Wed Oct 12, 2005 5:52 pm
Location: Milan,Italy

Postby James Bott » Mon Mar 13, 2006 2:48 pm

Piscicelli,

I'm not sure exactly what you want since Explorer can show files a number of different ways.

You can use the directory() function to get a list of files, then use a browse to browse the array.

If you want to show files as icons, take a look at TListView.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Piscicelli Zingoni » Mon Mar 13, 2006 7:56 pm

i solved the problem simple using

waitrun("explorer.exe c:\mydata")

it works fine for my scope.
tks
Piscicelli Zingoni
 
Posts: 76
Joined: Wed Oct 12, 2005 5:52 pm
Location: Milan,Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 62 guests