Alternative to PowerScript function GetFolder() + start path and create folder

Bas Oversteegen
CODE AUTHOR
Posts: 2
 6 years 3 weeks ago -  6 years 2 weeks ago #293 by Bas Oversteegen
Bas Oversteegen created the code: Alternative to PowerScript function GetFolder() + start path and create folder
GetFolderDialog() is an alternative to GetFolder() and is based on WinAPI IFileOpenDialog. Would be nice if PowerBuilder could provide something like this as a standard PowerScript function. Visual Studio 2017 getfolderdialog.dll sources (GetFolderDialog and GetFolderDialog_test solution) attached. See '.\GetFolderDialog\pb' for PB 12.5 example app. See doc dirs for VS project configuration and compilation instructions.

This message has an attachment file.
Please log in or register to see it.

Last Edit: 6 years 2 weeks ago by  Bas Oversteegen .  Reason: Changed license from GNU to Apache for free usage, changed PB 2019 R2 example app to PB 12.5 example app

Please Log in or Create an account to join the conversation.

John Fauss
Posts: 16
 2 months 3 weeks ago #661 by John Fauss
John Fauss replied the code: Alternative to PowerScript function GetFolder() + start path and create folder

Gayathri - You might wish to download and examine the GetFileName sample app from Roland Smith's TopWizProgramming web site for an alternative to the PowerScript functions:

 

    https://www.topwizprogramming.com/freecode_getfilename.html

 

Please Log in or Create an account to join the conversation.

Gayathri Narayanan
Posts: 1
 4 months 1 week ago -  4 months 1 week ago #653 by Gayathri Narayanan
Gayathri Narayanan replied the code: Alternative to PowerScript function GetFolder() + start path and create folder

Is there an Alternative to PowerScript function Getfileopenname() and Getfilesavename()

 

Regards

 

Gayathri Narayanan

Last Edit: 4 months 1 week ago by  Gayathri Narayanan . 

Please Log in or Create an account to join the conversation.

Stephan Schröpel
Posts: 2
 3 years 10 months ago #444 by Stephan Schröpel
Stephan Schröpel replied the code: Alternative to PowerScript function GetFolder() + start path and create folder
Thank you so much, Bas!!!

It works fine and looks much better than before using PB GetFolder()!

I added an alias at the end of the external Funktion Declaration and now i can use 32 or 64 call, depending of the environment.

Greetings and have a nice weekend
Stephan

Please Log in or Create an account to join the conversation.