| LayoutMessageStrict Property |
Gets or sets wheter the LayoutMessage is strict.
Namespace:
OBCOM.NetSwitchLib.Layouts
Assembly:
OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax public bool Strict { get; set; }
Public Property Strict As Boolean
Get
Set
Property Value
Type:
BooleanRemarks
Defines whether message editing is strict. If message editing is
strict, any attempt to assign an invalid field value generates
(throws) an exception. If message editing is not strict, certain
invalid field values are permitted as described in the following
table:
Invalid Field Value | Action Taken |
RUT value with incorrect parity character | The RUT value is stored as supplied |
Numeric value longer than the length of the field | The numeric value is silently truncated on the left |
Text value longer than the length of the field | The text value is silently truncated on the right |
Negative value applied to an unsigned numeric field | The numeric value is stored ignoring its sign |
See Also