Set_Foreign_Profile_String
Obsolete
This command is obsolete. Use the cRegistry class for accessing the Windows Registry in DataFlex.
Purpose
To set the contents of a value of a key in a branch of the registry, creating new branches, keys, and values if they do not already exist.
Syntax
set_foreign_profile_string
keyname
subkeyname
valuename
to
value
Argument Explanation
- keyname: The name of a key in the registry.
- subkeyname: The name of a subkey in
keyname. - valuename: The name of a value defined in
subkeyname. - value: The new string contents for the value named
valuename.
What It Does
set_foreign_profile_string sets the contents of the value valuename under subkey subkeyname in the key keyname.
set_foreign_profile_string "Microsoft\Windows\CurrentVersion\Time Zones" ;
"Atlantic" "Dlt" to "Data Access Daylight Time"
This example sets the name of Atlantic Daylight Time to "Data Access Daylight Time".
Windows will create a path to the value, adding branches of keys and subkeys and value names to satisfy the call. Make certain the registry root branch is also set correctly before executing SET_FOREIGN_PROFILE_STRING.