HBPersistent() > Methods for restoring an object xHarbour Developers Network  

oHBPersistent:loadFromFile()

Loads persistent object from a file.

Syntax

:loadFromFile( <cFileName> ) --> lSuccess

Arguments

<cFileName>
This is a character string holding the name of the file to read. It must include path and file extension. If the path is omitted from <cFileName>, the file is searched in the current directory.

Description

Method :loadFromFile() reads binary data from the file <cFileName> and copies it to the object executing the method. The file must be created by the method :saveToFile() If the file does not exists, a runtime error is raised.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe