StrDup Function

Syntax:

StrDup(Len, char)

Group:

String

Description: Returns the string Len long filled with char or the first char of char.   

Parameters:

Parameter

Description

Len

Create a string this many chars long.

char

Fill the string with this char value. If this is a numeric value then use the ASCII char equivalent. If this is a string value use the first char of that string.

Example:

Sub Main
   Debug.Print StrDup(4,65)    '"AAAA"

    Debug.Print StrDup(4,"ABC") '"AAAA"

End Sub