lflush
Complete a file management transaction for the specified open zip archive or XML file, then close the file, ignoring any file redirections in the assignment file.
lflush "
ZipArchive:"
|
"
XmlFile"
Example:
lflush "myexport.xml"
Parameters
Parameter | Data Type | Description |
---|---|---|
ZipArchive | String | Zip file name, optionally preceded by the path to the file |
XmlFile | String | XML file accessed by $ude
("export") or $ude ("copy") with the keepopen option.
|
For more information, see Syntax of File and Directory Names.
Use
Allowed in all component types.
Description
When accessing files and directories located in
zip archives, Uniface keeps file open to avoid the performance problems entailed by repeatedly
opening and closing files. For the same reason, you can specify the keepopen
option when repeatedly using $ude ("export") or $ude ("copy")
to export or copy files.
The lflush ProcScript statement explicitly completes an open transaction for a specified zip archive or XML file and closes the file.
Flushing Zip Files
The following example writes data to the def.txt file located in the dir1 directory within the b5.zip archive, then saves and close the file using lflush.
lfiledump "abc", "b5.zip:dir1\def.txt" lflush "b5.zip:"
Flushing Export Files
In the following example, all models and components are exported, and lflush is used to complete the transaction and close the file:
vOut = $ude("export", "model", "*", "D:\myexports\myexport.xml", "keepopen=true") vOut = $ude("export", "component", "*", "D:\myexports\myexport.xml", "keepopen=true;append=true") lflush "myexport.xml"
Version | Change |
---|---|
9.1.01 | Introduced |