PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Example: Creating a registry key
RegistryCreateKey (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 MyApp
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 required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment