Chr Function Example

This example fills list box one on Dialog1 with the letters A through Z.

For i = 65 To 90
    DialogSheets("Dialog1").ListBoxes(1).AddItem Text:=Chr(i)
Next i

This example creates a line break in a message box by using the Chr function.

msgText = "The current folder is:" & Chr(13) & CurDir()
MsgBox msgText