sysUserProfile

C Styled Script
Reference Manual

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using The CSS Executive
Language
Directives
System Library
   sysCommand
   sysDate
   sysDirectory
   sysElapsed
   sysEnvVar
   sysLoadScript
   sysLoadLibrary
   sysLog
   sysLogFile
   sysLogLevel
   sysProfile
   sysPrompt
   sysSleep
   sysShow
   sysStartDate
   sysStartTime
   sysSystemProfile
   sysTime
   sysTrace
   sysUserProfile
String Library
Regular Expression Lib.
File Library
Database Library
C API
C++ API
CSS Links
  
sysUserProfile(
  const appl,     // application
  const key,      // key
  [const value])  // new value if provided

Query or set a key value in the user profile. If no value is passed as argument, the key is queried (be aware there will be an exception thrown if the key does not exist). Providing a value will add or replace the key; an empty String as value will delete the key.

Win32: The key will be stored in the registry at HKEY_CURRENT_USER\SOFTWARE\appl.

Returns the key value.

Example:

// add or replace a key
sysUserProfile('Order Entry','License','a23fg01334bb00');
 
// query a value
var wp;
try {
   wp = sysUserProfile('Order Entry', 'Work Path');
}
catch (exc[]) {
   // key not found
   ...
}
 Copyright © IBK LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>