ChangeDirectory – PB Docs 2022

ChangeDirectory

PowerScript function

Description

Changes the current directory.

Syntax

Argument

Description

directoryname

String for the name of the directory you want to set as
the current directory

Return value

Integer.

Returns 1 if the function succeeds and -1 if an error occurs.

Examples

This example changes the current directory to the parent directory
of the current directory and displays the new current directory in a
SingleLineEdit control:

See also

CreateDirectory

GetCurrentDirectory


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x