Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add entry in opentext.ini 1

Status
Not open for further replies.

DingChavez

Programmer
Mar 3, 2006
12
CA
How to configure a module with the builder to add an entry in the opentext.ini at installation time?

like :
[ABC]
debug=0
maxRows=1234

Thanks.
 
Have you looked at the FilePref's object documentation.Here's something that I do.I write
stuff with this code to the module's ini
Soory bits and pieces of code
Code:
Fileprefs	f
String		filename
filename = .Module().PathPrefix() + 'kmcustomcatupgrade.ini'
f = fileprefs.Open( filename )
//the above code gets a handle to the ini file
.fStatus= fileprefs.GetPref( f, 'KMCustCatUpgrade',whichStatus )
//I get a section called that

//I need to write something to it
//lots of data type conversion

fileprefs.AddPref( f 'KMCustCatUpgrade','status', 'Processing' )
Output will be something like
[KMCustCatUpgrade]
status=Processing


Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top