Click or drag to resize

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; }

Property Value

Type: Boolean
Remarks
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 ValueAction Taken
RUT value with incorrect parity characterThe RUT value is stored as supplied
Numeric value longer than the length of the fieldThe numeric value is silently truncated on the left
Text value longer than the length of the fieldThe text value is silently truncated on the right
Negative value applied to an unsigned numeric fieldThe numeric value is stored ignoring its sign
See Also