<-- Previous || Up || Next -->

Add Cr Lf Every N Characters Function
Formats Justifies Class

Public Function AddCrLfEveryNCharacters( _
      ByVal vValue As Variant _
    , ByVal vEveryNChars As Variant _
    ) As Variant

"Add Carriage Return New Line Every N Characters"
Add a carriage return and new line characters between every vEveryNChars characters.

Example:
    ? AddCrLfEveryNCharacters("12345678")
    123
    456
    78
See also:
    SeparateCharactersIntoNGroups Function
    WrapText Function
    WrapBlocks Function
vValue: String to which carriage return and new line characters will be added at the specified interval. Function returns Null if vValue is Null or cannot be fixed up to a String.

vEveryNCharacters: The number of characters between the addition of each carriage return and new line string. Function returns vValue in string form if vEveryNChars is Null or cannot be fixed up to a number.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.