Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

LibraryDelete – PB Docs 2021 – PowerBuilder Library

LibraryDelete – PB Docs 2021

LibraryDelete

PowerScript function

Description

Deletes a library file or, if you specify a DataWindow object,
deletes the DataWindow object from the library.

Syntax

Argument

Description

libraryname

A string whose value is the name of the PowerBuilder
library you want to delete or from which you want to delete a
DataWindow object. If you do not specify a full path,
LibraryDelete uses the system’s standard file search order to
find the file.

objectname (optional)

A string whose value is the name of the DataWindow object
you want to delete from libraryname.

objecttype (optional)

A value of the LibImportType enumerated datatype
identifying the type of object you want to delete. The only
supported object type is ImportDataWindow!.

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, LibraryDelete returns null.

Usage

You can delete DataWindow objects from a library in a script with
the LibraryDelete function. To delete other types of objects, use the
Library painter.

Examples

This statement deletes a library called dwTemp in the current
directory and on the current application library path:

See also

LibraryCreate

LibraryDirectory

LibraryExport

LibraryImport


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