B
Brock
Thanks in advance... I have a string that I'm building that needs to
write to a file the last name, first name and middle initial in this
format with a maximum of 20 characters. Two examples:
Brenda J Lanier
Lanier,Brenda J
' note that this name is only 15 characters, with the space and
comma, after formatting so I'm safe
Edward M Berksweller:
Berksweller,Garrett M
' note that this name has 21 characters, with the space and comma,
so to stay within the 20 char limit it needs to write as:
Berksweller,Garrett
with the space being the 20th character... it's OK for me to loose the
middse initial
My best guess is this for the code:
FieldString = (emp.LastName & "," & emp.FirstName & "
" & emp.MI)
EmpList.Write(FieldString.PadRight(20, " "c))
But I don't think this will work. Any ideas? thanks!!!
write to a file the last name, first name and middle initial in this
format with a maximum of 20 characters. Two examples:
Brenda J Lanier
Lanier,Brenda J
' note that this name is only 15 characters, with the space and
comma, after formatting so I'm safe
Edward M Berksweller:
Berksweller,Garrett M
' note that this name has 21 characters, with the space and comma,
so to stay within the 20 char limit it needs to write as:
Berksweller,Garrett
with the space being the 20th character... it's OK for me to loose the
middse initial
My best guess is this for the code:
FieldString = (emp.LastName & "," & emp.FirstName & "
" & emp.MI)
EmpList.Write(FieldString.PadRight(20, " "c))
But I don't think this will work. Any ideas? thanks!!!