Salesforce

INIGet (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

INIGet (Magic xpa 4.x)

Returns an environment value from the Magic.ini file.

Syntax:

INIGet(inientry)

Parameters:

inientry: An Alpha string indicating the Magic.ini file section and parameter to read '[section] parameter'

Returns:

An Alpha string indicating the Magic.ini file section and parameter.

Examples:

INIGet('owner') returns the current owner value.

INIGet('[MYAPPL]LAST_CUST') returns an application dependent value.

Note:

If no Magic.ini section is specified, the [MAGIC_ENV] section is used by default.

The INIENTRY parameter is not case sensitive. This function could be used to access Magic xpa specific variables, or to retrieve application dependent global data. If used to retrieve update-able application data, you should ensure that each user has their own Magic.ini file. If you need to share global data and counters between multiple users, you should use standard DB tables.

For performance reasons, you may prefer to set the Resident MAGIC.INI setting in the Environment dialog box to 'Yes'.

See also:

INIPut

The Online and Rich Client Samples projects (program EV05 and REV05)

Reference
Attachment 
Attachment