Share via


VendOutPaymRecordTELEHANSA5122_EE.mandatoryStr_EE Method [AX 2012]

Verifies that a passed string value is not empty, and aligns and pads the string according to the requirements.

Syntax

protected str mandatoryStr_EE(
    str _strFieldValue, 
    int _strMaxLength, 
    str _strFieldName, 
   [NoYes _isLeftAligned])

Run On

Server

Parameters

  • _strFieldValue
    Type: str
    The string to verify and align.
  • _strMaxLength
    Type: int
    The maximum length of the string (including spaces for alignment).
  • _strFieldName
    Type: str
    The name of a mandatory field.
  • _isLeftAligned
    Type: NoYes Enumeration
    A value that specifies whether the string should be aligned left (NoYes::Yes) and padded with spaces from the right, or whether it should be aligned right (NoYes::No) and padded with spaces from the left.

Return Value

Type: str
The aligned and padded string.

Exceptions

Exception Condition
Error

The string is empty or contains only spaces.

See Also

Reference

VendOutPaymRecordTELEHANSA5122_EE Class