Jump to content

RwIni

From EDM2

rwIni()'s operation is identical to SysIni() _except_ that you must pass it the handle obtained by a previous call to rwIniOpen().

Syntax

rc = rwIni(handle, arg1[, arg2[, arg3]])

Returns

If successful, all calls to rwIni() except queries return a null string; queries return the requested value. If unsuccessful, all calls return 'ERROR:'.

Samples

  • enumerate all applications
   rc = rwIni(handle, 'ALL:', 'stem')
  • enumerate all keys within an application
   rc = rwIni(handle, app, 'ALL:', 'stem')
  • delete an application and all its keys
  rc = rwIni(handle, app, 'DELETE:')
  • delete a key within an application
   rc = rwIni(handle, app, key, 'DELETE:')
  • add/change a key and its value
   rc = rwIni(handle, app, key, value)
  • query a key's value
   value = rwIni(handle, app, key)