OD Get options

4D - Documentation   Français   English   German   English   4D for Oracle, Command Theme List   4D for Oracle, Command Alphabetical List   Back   Previous   Next

version 1.5


OD Get options (object_ID) Longint

ParameterTypeDescription
object_IDLongintObject identifier
Function resultLongintOption settings for the object or
-1 if an error occurs

Description

The OD Get options function returns the option settings for the object with the object_ID identifier. object_ID may be either a context identifier, cursor identifier, connection identifier, or 0 to retrieve the default options and the global options.

OD Get options returns -1 if there is an error.

Example

The following method determines whether the kWithLock option is set.

   Options:=OD Get options (Context_ID)
   If ((Options\kWithLock)%2=1)   `kWithLock option is selected
      …
   Else         `kWithLock option is not selected
      …
   End if

See Also

OD SET OPTIONS.


4D - Documentation   Français   English   German   English   4D for Oracle, Command Theme List   4D for Oracle, Command Alphabetical List   Back   Previous   Next