Question:
How can I tell whether the user has pressed Cancel key while FolderSelectWindow() function is being executed?
Solution:
Whenever Cancel option is pressed, this function returns an empty string (“”). Otherwise, it returns a string with the selected path.