 | LayoutField.GetNumber Method |
Returns the decimal value of the index occurence
of field in message.
Namespace:
OBCOM.NetSwitchLib.Layouts
Assembly:
OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntaxpublic virtual Nullable<decimal> GetNumber(
LayoutMessage message,
int index
)
Public Overridable Function GetNumber (
message As LayoutMessage,
index As Integer
) As Nullable(Of Decimal)
Parameters
- message
- Type: OBCOM.NetSwitchLib.Layouts.LayoutMessage
The message that will be read.
- index
- Type: System.Int32
The occurence index of the field.
Return Value
Type:
Nullable<Decimal>
The decimal value of Field(
index) in
message.
Exceptions
RemarksThis method can only be applied to fields of type NUMERIC or SIGNED.
If the value of the field is NULL it returns
null (see IsNull for more
details).
See Also