Language Reference Guide : B. Dedicated User Classes for .INI File Support : EntryObject User Class : GetString Method
 
Share this page          
GetString Method
The GetString method returns the specified keyword-value entry as a StringObject.
This method has the following syntax:
StringObject = EntryObject.GetString()
Example—GetString method:
INITIALIZE()=
DECLARE
    ini    = ProfileObject;
    str    = StringObject default null;
    productGUID = varchar(256) not null;
ENDDECLARE
{
    ini.ReadProfile (IniFile = 'c:\myproduct\setup.ini');
    str = ini.Contents[1].Entries[2].GetString();
    productGUID = str.Value;
}