LibraryCreate
PowerScript function
Description
Creates an empty PowerBuilder library with optional comments.
Syntax
|
1 |
LibraryCreate ( libraryname {, comments } ) |
|
Argument |
Description |
|---|---|
|
libraryname |
A string whose value is the name of the PowerBuilder |
|
comments (optional) |
A string whose value is the comments you want to associate |
Return value
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 2 |
LibraryCreate("c:pbdwTemp.pbl", & "Temporary library for dynamic DataWindows") |
See also