Public Function RepeatStringCharacters( _
ByVal vStringChars As Variant _
, Optional ByVal vNTimes As Variant _
) As Variant RepeatStringCharacters("ABCD", 3) = "AAABBBCCCDDD"See also: RepeatString Function
RepeatStringToLength FunctionvStringChars: The string containing the characters which are to be replicated. Function returns Null if vStringChars is Null or cannot be fixed up to a String. vNTimes: The number of times that each character within string vStringChars is to be replicated. vNTimes defaults to 1 (one) if it is missing or Null or cannot be fixed up to a number.
Function returns an empty string if vNTimes is <= 0 (less than or equal to zero).
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.