Share via


VendOutPaymCreate_MultiCashForeign_PL.strLengthFix Method [AX 2012]

Pads the passed string with spaces(' ') on the right or left depending on _rAlign parameter to reach the specified length

Syntax

protected str strLengthFix(
    str _value, 
    int _length, 
   [boolean _rAlign])

Run On

Called

Parameters

  • _value
    Type: str
    The string value which should be written.
  • _length
    Type: int
    Number of characters allocated by the file format for the value being written.
  • _rAlign
    Type: boolean
    True if string should be right aligned

Return Value

Type: str
Returns padded string

Remarks

If string length is more than _length, the string will be cut to reach the specified length

See Also

Reference

VendOutPaymCreate_MultiCashForeign_PL Class