ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Registry functions
  • Example: Creating a registry key
RegistrySetValue (Example)
Example: Creating a registry key
This example is used to create a registry key for an application and to write a value into this key.
Path is string
// Find out the name of "root" key
Path = RegistryFirstSubKey()
// Create the key for my app
Path = Path + "\MyApp\"
IF RegistryCreateKey(Path) = False THEN
Error("Error while creating the key")
RETURN
END
// Write a value into the key
IF RegistrySetValue(Path, "Language", "English") = False THEN
Error("Error while writing into the key")
RETURN
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help