LibraryExport PowerScript function
Description
Exports an object from a library. The object is exported as
syntax.
Syntax
|
1 |
<span>LibraryExport</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 |
A string whose value is the name of the |
|
objecttype |
A value of the LibExportType enumerated
|
Return Values
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 |
String ls_dwsyn, ls_errors |
|
1 |
ls_dwsyn = <span>LibraryExport</span>("c:pbdwTemp.pbl", & |
|
1 |
"d_emp", ExportDataWindow!) |
|
1 |
dw_1.Create(ls_dwsyn, ls_errors) |
See Also
-
Create method
for DataWindows in the DataWindow Reference or online Help