BAP Online Manuals : Library Reference : Library by Name : setprofile
Previous: servertype
Next: set_cut

6.2.120. setprofile

stores a profile string

SYNOPSIS

include 'iolib.h'
setprofile(File, App, Key, Value)

SYNTAX

setprofile(File, App, Key, Value) (i,i,i,i)

ARGUMENTS

string(File) (i) Host environment profile file.
string(App) (i) Application section in File.
string(Key) (i) Keyword for Value
string(Value) (i), integer(Value) Value to store.

DESCRIPTION

This predicate stores environment information on the host system. The exact implementation and meaning of the arguments is host dependent.

Currently setprofilestring is available only for the MS-Windows host server WIO :

The profile information is strored in '.INI' files, e.g. WIN.INI, structured into sections headed with Application clauses. Inside these sections, the values are stored as pairs of Keyword and Value. setprofile stores the integer or string given by Value in the appropriate section. If the File or Section is not found, it will be created.
setprofile fails if Value is neither string nor integer.

ERRORS

No errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

getprofile , servertype


BAP Online Manuals : Library Reference : Library by Name : setprofile
Previous: servertype
Next: set_cut