LibraryExport
PowerScript function
Description
Exports an object from a library. The object is exported as
syntax.
Syntax
|
1 |
LibraryExport ( libraryname, objectname, objecttype ) |
|
Argument |
Description |
|---|---|
|
libraryname |
A string whose value is the name of the PowerBuilder |
|
objectname |
A string whose value is the name of the object you want to |
|
objecttype |
A value of the LibExportType enumerated datatype
|
Return value
String.
Returns the syntax of the object if it succeeds. The syntax is the
same as the syntax returned when you export an object in the Library
painter except that LibraryExport does not include an export header.
Returns the empty string (“”) if an error occurs. If any argument’s value
is null, LibraryExport returns null.
Examples
These statements export the DataWindow object dw_emp from the
library called dwTemp to a string named ls_dwsyn and then use it to create
a DataWindow:
|
1 2 3 4 |
String ls_dwsyn, ls_errors ls_dwsyn = LibraryExport("c:pbdwTemp.pbl", & "d_emp", ExportDataWindow!) dw_1.Create(ls_dwsyn, ls_errors) |
See also
Create method for DataWindows in the section called “Create” in DataWindow Reference.