%SYS.NLS.Device
class %SYS.NLS.Device extends %Library.RegisteredObject
Exposes some NLS properties of the current device.Changing a property acts immediately on the current device, not on the device that was current when the object was instantiated.
For generic locale properties see %SYS.NLS.Locale.
For system and process NLS table settings see %SYS.NLS.Table.
For date, time and number format properties see %SYS.NLS.Format.
Property Inventory
- InpDefaultAction
- InpReplaced
- InpReplacementValue
- OutDefaultAction
- OutReplaced
- OutReplacementValue
- Pitch
- State
- XLTTable
Method Inventory
Properties
property InpDefaultAction as %Integer;
Input default action
- 0 = generate error
- 1 = replace with replacement value/string
- 2 = ignore (replace with original character)
Property methods: InpDefaultActionDisplayToLogical(), InpDefaultActionIsValid(), InpDefaultActionLogicalToDisplay(), InpDefaultActionNormalize()
property InpReplaced as %Boolean;
If true indicates that a replacement occurred during
the last input translation.
Property methods: InpReplacedDisplayToLogical(), InpReplacedIsValid(), InpReplacedLogicalToDisplay(), InpReplacedNormalize()
property InpReplacementValue as %String;
Input replacement value/string.
Substituted in case of error if InpDefaultAction=1
Substituted in case of error if InpDefaultAction=1
Property methods: InpReplacementValueDisplayToLogical(), InpReplacementValueIsValid(), InpReplacementValueLogicalToDisplay(), InpReplacementValueLogicalToOdbc(), InpReplacementValueNormalize()
property OutDefaultAction as %Integer;
Output default action
- 0 = generate error
- 1 = replace with replacement value/string
- 2 = ignore (replace with original character)
Property methods: OutDefaultActionDisplayToLogical(), OutDefaultActionIsValid(), OutDefaultActionLogicalToDisplay(), OutDefaultActionNormalize()
property OutReplaced as %Boolean;
If true indicates that a replacement occurred during
the last output translation.
Property methods: OutReplacedDisplayToLogical(), OutReplacedIsValid(), OutReplacedLogicalToDisplay(), OutReplacedNormalize()
property OutReplacementValue as %String;
Output replacement value/string.
Substituted in case of error if OutDefaultAction=1
Substituted in case of error if OutDefaultAction=1
Property methods: OutReplacementValueDisplayToLogical(), OutReplacementValueIsValid(), OutReplacementValueLogicalToDisplay(), OutReplacementValueLogicalToOdbc(), OutReplacementValueNormalize()
property Pitch as %Integer;
Used with double width characters (e.g. Kanji)
Property methods: PitchDisplayToLogical(), PitchIsValid(), PitchLogicalToDisplay(), PitchNormalize()
property State as %Boolean;
State of translation for current device
- 0 = Off
- 1 = On
Property methods: StateDisplayToLogical(), StateIsValid(), StateLogicalToDisplay(), StateNormalize()
property XLTTable as %String;
Translation table associated with current device.
Property methods: XLTTableDisplayToLogical(), XLTTableIsValid(), XLTTableLogicalToDisplay(), XLTTableLogicalToOdbc(), XLTTableNormalize()
Methods
Get input mode string
Parameters:
Parameters:
- mode - mode number
Set input mode string
Parameters:
Parameters:
- value - new input mode string
- mode - mode number
Get output mode string
Parameters:
Parameters:
- mode - mode number
Set output mode string
Parameters:
Parameters:
- value - new output mode string
- mode - mode number
Sets I/O translation table for current device
This method exists as a convenience only. Calling it is equivalent to instantiating a %SYS.NLS.Device object and setting obj.XLTTable=tabnam
Parameters:
This method exists as a convenience only. Calling it is equivalent to instantiating a %SYS.NLS.Device object and setting obj.XLTTable=tabnam
Parameters:
- tabnam - table name
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()