FileDelete PowerScript function
Description
Deletes the named file.
Syntax
|
1 |
<span>FileDelete</span> ( <span>filename</span> ) |
|
Argument |
Description |
|---|---|
|
filename |
A string whose value is the name of the |
Return Values
Boolean. Returns true if
it succeeds, false if an error occurs. If filename is null, FileDelete returns null.
Examples
These statements delete the file the user selected
in the Open File window:
|
1 |
integer ret, value |
|
1 |
string docname, named |
|
1 |
|
1 |
value = GetFileOpenName("Select File," & |
|
1 |
docname, named, "DOC", & |
|
1 |
"Doc Files (*.DOC),*.DOC") |
|
1 |
|
1 |
IF value = 1 THEN ret = MessageBox("Delete", & |
|
1 |
"Delete file?", Question!, OKCancel!) |
|
1 |
IF ret = 1 THEN <span>FileDelete</span>(docname) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest