dim nSpace as int
xy="1234"
xz="5678"
nSpace = 30 - xy.Lenght
xyz = xy & replicate(" ",nSpace) & xz
Sub replicate(charadd As String, totcharadd As Int)
Private totspaces As String
For i = 1 To totcharadd
totspaces = totspaces&charadd
Next
' Msgbox(totspaces&totspaces.Length,"tot spaces")
Return totspaces
End Sub