<<

Contents

Search

>>

 

GET_PROFILESTRING$

 

 

Function

 

 

Syntax:

GET_PROFILESTRING$(<Filename>,<Section>,<Entry>)

 

<Filename>

= <STRING-EXPRESSION>

<Section>

= <STRING-EXPRESSION>

<Entry>

= <STRING-EXPRESSION>

 

 

Meaning:

Reads data from an ini-file.

 

The entries in the INI files have the form:

[Section]

entry1 = text1

entry2 = text2

...

 

GET_PROFILESTRING$ returns the string entered in the section <Section> under <Entry>.

 

If <Entry> is the empty string "", all <Entry> names from <Section> are returned as results. The single <Entry> names are separated by the character CHR$(1) in the result string.

 

Parameter:

Filename

Name of ini-file

Section

Section

Entry

Entry

 

Sample:

DEPARTMENT$ = GET_PROFILESTRING$("user.dat","department",GET_USERNAME$)

 

See also:

WRITE_PROFILESTRING