Language Reference Guide : B. Dedicated User Classes for .INI File Support : ProfileObject User Class : ReadProfile Method
 
Share this page          
ReadProfile Method
The ReadProfile method opens an initialization file on disk, reads the contents, and parses it into sections and entries.
This method has the following syntax:
integer = ProfileObject.ReadProfile(IniFile = varchar(256) not null)
If the method succeeds, it returns ER_OK; if the file is not found or cannot be read, the method returns ER_FAIL. Descriptions of system constant values and their numeric equivalents are listed in Error Codes.