LOCAL cOptName, cOptVal, cKeyPath, nUserKey, lCreateKey WITH ThisForm cOptName = "DataPath" cOptVal = SPACE(256) cKeyPath = "Software\MickeyMouse\" nUserKey = HKEY_LOCAL_MACHINE * Get the registry value from the key .Registry.GetRegKey(cOptName, @cOptVal, cKeyPath, nUserKey) .txtCurrentPath.Value = cOptVal ENDWITH>Hi ,