LibraryCreate PowerScript function
Description
Creates an empty PowerBuilder library with optional comments.
Syntax
|
1 |
<span>LibraryCreate</span> ( <span>libraryname </span>{, <span>comments</span> <span></span>} ) |
|
Argument |
Description |
|---|---|
|
libraryname |
A string whose value is the name of the |
|
comments (optional) |
A string whose value is the comments |
Return Values
Integer. Returns 1 if it succeeds and
-1 if an error occurs. If any argument’s value is null, LibraryCreate returns null.
Usage
LibraryCreate creates a PowerBuilder library
file (PBL) in the current directory, unless
you specify a directory path as part of libraryname.
If you do not specify an extension, LibraryCreate adds
the extension .PBL.
Examples
This statement in Windows NT creates a library named
dwTemp in the PB directory on drive C and associates
a comment with the library:
|
1 |
<span>LibraryCreate</span>("c:pbdwTemp.pbl", & |
|
1 |
"Temporary library for dynamic DataWindows") |