MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.


I'm not curious

Create a Folder Directory in PowerBuilder

Published on 02 September 16
1436
0
1
Create Local External functions of Window/UserObject
Function Boolean IsDir(String DirPath) Library 'CFXtra32.Dll' alias for "IsDir;Ansi"
Function Boolean MkDir(String DirPath) Library 'CFXtra32.Dll' alias for "MkDir;Ansi"
FUNCTION boolean FMove(string SrcFile, string DstFile) Library 'CFXtra32.Dll' alias for "FMove;Ansi"
FUNCTION boolean FCopy(string s,string d) LIBRARY "CFXtra32.Dll" alias for "FCopy;Ansi"
Now You can Make use of these External Functions in Code
The below code checks for a directory if it doesn't exists, will create one
boolean lb_rtn

IF NOT W_test.IsDir(path) THEN
lb_rtn= W_test.MkDir(path)
IF lb_rtn= FALSE THEN
MessageBox("Info","Not able to create the directory !!!")
END IF
end if

Create Local External functions of Window/UserObject

Function Boolean IsDir(String DirPath) Library 'CFXtra32.Dll' alias for "IsDir;Ansi"

Function Boolean MkDir(String DirPath) Library 'CFXtra32.Dll' alias for "MkDir;Ansi"

FUNCTION boolean FMove(string SrcFile, string DstFile) Library 'CFXtra32.Dll' alias for "FMove;Ansi"

FUNCTION boolean FCopy(string s,string d) LIBRARY "CFXtra32.Dll" alias for "FCopy;Ansi"

Now You can Make use of these External Functions in CodeThe below code checks for a directory if it doesn't exists, will create one

boolean lb_rtn

IF NOT W_test.IsDir(path) THEN

lb_rtn= W_test.MkDir(path)

IF lb_rtn= FALSE THEN

MessageBox("Info","Not able to create the directory !!!")

END IF

end if

This blog is listed under Development & Implementations Community

Related Posts:
Post a Comment

Please notify me the replies via email.

Important:
  • We hope the conversations that take place on MyTechLogy.com will be constructive and thought-provoking.
  • To ensure the quality of the discussion, our moderators may review/edit the comments for clarity and relevance.
  • Comments that are promotional, mean-spirited, or off-topic may be deleted per the moderators' judgment.
You may also be interested in
Awards & Accolades for MyTechLogy
Winner of
REDHERRING
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url

Back to Top