Navigation: ABC Library Reference > FileManager > FileManager Properties >====== LazyOpen (delay file open until access) ====== | |
LazyOpen | BYTE |
The LazyOpen property indicates whether to open the managed file immediately when a related file is opened, or to delay opening the file until it is actually accessed. A value of one (1 or True) delays the opening; a value of zero (0 or False) immediately opens the file.
Delaying the open can improve performance when accessing only one of a series of related files.
Implementation:
The Init method sets the LazyOpen property to True. The ABC Templates override this default if instructed. See Template Overview--File Handling for more information.
The various file access methods (Open, TryOpen, Fetch, TryFetch, Next, TryNext, Insert, TryInsert, etc.) use the UseFile method to implement the action specified by the LazyOpen property
See Also: Init, Open, TryOpen, Fetch, TryFetch, Next, TryNext, Insert, TryInsert, UseFile