An example/demo for getfolder() request

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

Post Reply
bluebird
Posts: 172
Joined: Wed Sep 28, 2016 3:55 am
DBs Used: DBF

An example/demo for getfolder() request

Post 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
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: An example/demo for getfolder() request

Post 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
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: An example/demo for getfolder() request

Post 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
GetFolderDemo.jpg (21.37 KiB) Viewed 2167 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
Viva INTERNATIONAL HMG :D
Post Reply