MIDB

The MIDB function outputs the (left) N bytes specified by the Count property starting from the Xth byte specified by the Offset property.

Input/Output

Number of Connections: Min: 1/Max:3
InputData TypeDescription
Input1BinaryThe data.
Input2IntegerSets the Offset property. (optional)
Input3IntegerSets the Count property. (optional)

OutputData TypeDescription
Output1BinaryThe selected data.

Property

NameProperty TypeDescription
OffsetintThe offset, in bytes, from the start of the input data from which byte data is selected. The first byte in the input data is "1".
CountintThe number of bytes to select.

Topic

How a Binary function handles byte conversions

The Binary Functions LEFTB, RIGHTB, MIDB, REPLACEB and TRUNCATEB handle input binary data as it is. If binary data cannot be successfully converted back to a string, an empty string is output.

Example

PropertyOutput
Input10x6165696F75Offset20x6569
Count2