DlgStoreValues

Syntax

DlgStoreValues ValuesFile$, Identifier$

Remarks

On the Macintosh, stores string and numeric values for controls in custom dialog boxes so they may be retrieved later by DlgLoadValues. If you create a complex wizard, using DlgStoreValues and DlgLoadValues instead of SetPrivateProfileString and GetPrivateProfileString$() for storing and retrieving values entered by the user can improve performance significantly.

Argument

Explanation

ValuesFile$

The name of the file in which the values are stored. ValuesFile$ can include a path. If a path is not specified, Word looks for ValuesFile$ in the Preferences folder.

Identifier$

A string that identifies the set of stored values (this string is used when retrieving values with DlgLoadValues).

Note that while you can store multiple sets of values for different dialog boxes in the same file, it is recommended for future cross-platform compatibility that you use one values file per dialog box.


The following rules determine which values Word stores:

In Windows, DlgStoreValues is unavailable and generates an error.

For an example, see DlgLoadValues.

See Also

DlgLoadValues