SaveINIFile

Use this procedure/function to save a set of INI control groups and options that were loaded into cache memory.

Syntax

SaveINIFile (Context, File)

Parameter

Description

Context

(Optional) A name (valid string) associated with a set of INI control groups and options loaded into cache memory.

File

Enter the name of the file in which you want to store the specified set of INI control groups and options. If you omit the file extension, the system uses INI. If you omit the path, the system stores the file in the current directory.

The system optionally returns one (1) on success or zero (0) on failure.

If a context name is associated with the execution of this procedure, that set of INI control groups and options will be stored in the specified physical file name.

Example

Here are some examples:

Procedure

Result

Explanation

SaveINIFile (,"DALRun");

The set of INI control groups and options are saved in a file.

The INI control groups and options are saved to the specified file. Execution of this procedure assumes that the file extension is INI.

SaveINIFile ("Run_process", "DALRun.ini");

The set INI control groups and options referenced by the context name, Run_process, are saved in a file.

The INI control groups and options are saved to the specified file.

See also