%SYS.NLS.Device
Class %SYS.NLS.Device Extends %RegisteredObject [ System = 4 ]
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.
Properties
XLTTable
Property XLTTable As %String;
Translation table associated with current device.
InpDefaultAction
Property InpDefaultAction As %Integer;
Input default action
- 0 = generate error
- 1 = replace with replacement value/string
- 2 = ignore (replace with original character)
InpReplacementValue
Property InpReplacementValue As %String;
Input replacement value/string.
Substituted in case of error if InpDefaultAction=1
InpReplaced
Property InpReplaced As %Boolean;
If true indicates that a replacement occurred during the last input translation.
OutDefaultAction
Property OutDefaultAction As %Integer;
Output default action
- 0 = generate error
- 1 = replace with replacement value/string
- 2 = ignore (replace with original character)
OutReplacementValue
Property OutReplacementValue As %String;
Output replacement value/string.
Substituted in case of error if OutDefaultAction=1
OutReplaced
Property OutReplaced As %Boolean;
If true indicates that a replacement occurred during the last output translation.
State
Property State As %Boolean;
State of translation for current device
- 0 = Off
- 1 = On
Pitch
Property Pitch As %Integer;
Used with double width characters (e.g. Kanji)
Methods
SetIO
ClassMethod SetIO(tabnam As %String) As %String
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:
- tabnam - table name Returns: previous table or "" in case of error