LibraryDelete
PowerScript function
Description
Deletes a library file or, if you specify a DataWindow object,
deletes the DataWindow object from the library.
Syntax
|
1 |
LibraryDelete ( libraryname {, objectname, objecttype } ) |
|
Argument |
Description |
|---|---|
|
libraryname |
A string whose value is the name of the PowerBuilder |
|
objectname (optional) |
A string whose value is the name of the DataWindow object |
|
objecttype (optional) |
A value of the LibImportType enumerated datatype |
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:
|
1 |
LibraryDelete("dwTemp.pbl") |
See also