ProfileString Property Example

This example retrieves and displays the startup path stored in the Windows registry.

MsgBox System.ProfileString("Options", "STARTUP-PATH")

This example sets and returns the value for an entry in the Windows registry (the SubkeyName subkey is added below HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word).

System.ProfileString("SubkeyName", "EntryName") = "Value"
MsgBox System.ProfileString("SubkeyName", "EntryName")