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