Framework EDI Reference. Methods and Properties
ediDataElement. MinimumLength

Returns the minimum length allowable for a data element value.

Syntax:

Remarks

The minimum length property of a data element specifies the minimum length of the value for a data element. A warning will be generated if the length of the value is less than the minimum length requirement.

Example

Dim oDataElement As Fredi.ediDataElement
Dim oDataSegment As Fredi.ediDataSegment

....

' Get first data segment in document.
Set oDataSegment = oEdiDoc.FirstDataSegment

' Get the data element that is the 5th position of the BEG data segment.
Set oDataElement = oDataSegment.GetDataElementByPos("\ISA\GS\ST\BEG<373>")

' Show the minimum length of the data element.
MsgBox "Data element minimum length: " & oDataElement.MinimumLength

Sample

P_MinimumLength.zip