An example/demo for getfolder() request

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

Post Reply
bluebird
Posts: 161
Joined: Wed Sep 28, 2016 3:55 am
DBs Used: DBF
Has thanked: 47 times
Been thanked: 7 times

An example/demo for getfolder() request

Post by bluebird » Sun Jan 27, 2019 7:53 pm

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: 3170
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 202 times
Been thanked: 107 times
Contact:

Post by mol » Sun Jan 27, 2019 8:15 pm

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: 4498
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 368 times
Been thanked: 111 times
Contact:

Post by esgici » Sun Jan 27, 2019 8:33 pm

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 270 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