Page 1 of 1
An example/demo for getfolder() request
Posted: Sun Jan 27, 2019 7:53 pm
by bluebird
Hello All
Is there an example/demo on using the Getfolder() function available?
There is an example for getfile() available but I did not see one for GetFolder()
Thanks for reading this request
Re: An example/demo for getfolder() request
Posted: Sun Jan 27, 2019 8:15 pm
by mol
You can call it in this way:
Code: Select all
cFolder:= GetFolder(cFromWhereToStart)
if !empty(cFolder)
MsgInfo("You've selected folder: "+ cFolder)
endif
Re: An example/demo for getfolder() request
Posted: Sun Jan 27, 2019 8:33 pm
by esgici
bluebird wrote: ↑Sun Jan 27, 2019 7:53 pm
There is an example for getfile() available but I did not see one for GetFolder()
Please look at :
...\SAMPLES\Basics\MAIN_DEMO
- GetFolderDemo.jpg (21.37 KiB) Viewed 2178 times
This this is simplest way to call function.
Full syntax is :
Code: Select all
GetFolder ( [<cTitle>] , [<cInitPath>], [<cInvalidDataMsg>], [<lNewFolderButton>] , [<lIncludeFiles>] , [<nCSIDL_FolderType>] , [<nBIF_Flags>] )--> cSelectedFolderName
As you can see all parameters are self-explanatory and possible values and meanings listed in the HMG_DOC. Further explanation and sample not required ( IMO ).
Happy HMG'ing