Hello Gurus: Marry Christmas to all!!
Please I need help.
-- I have a record thas has comma delimeter
-- Sometimes the user do not validate the name and people-status and in the string migh come a comma
-- I move the big record to the sRecord variable
"1250A","James, Fernandez",20020211,5,"Student ,", 4587
I am using the split function to get the information
MyInfo = split(sRecord,",",-1,1)
The problem is because the "James, Fernandez" has a comma in the string, it separates the first and last name which is wrong
My array should looks lilke this one:
=========================
MyInfo(0) = "1250A"
MyInfo(1) = "James Fernandez"
MyInfo(2) = 20020211
MyInfo(3) = 5
MyInfo(4) = "Student"
MyInfo(5) = 4587
However my array looks like this one right now:
=================================
MyInfo(0) = "1250A"
MyInfo(1) = "James "
MyInfo(2) = "Fernandez"
MyInfo(3) = 20020211
MyInfo(4) = 5
MyInfo(5) = "Student"
MyInfo(6) = ""
MyInfo(7) = 4587
Any advice how to fix this problem, it will be appreciated it.
Thanks to all for your knowledge
Daniel
Hollywood, FL
Please I need help.
-- I have a record thas has comma delimeter
-- Sometimes the user do not validate the name and people-status and in the string migh come a comma
-- I move the big record to the sRecord variable
"1250A","James, Fernandez",20020211,5,"Student ,", 4587
I am using the split function to get the information
MyInfo = split(sRecord,",",-1,1)
The problem is because the "James, Fernandez" has a comma in the string, it separates the first and last name which is wrong
My array should looks lilke this one:
=========================
MyInfo(0) = "1250A"
MyInfo(1) = "James Fernandez"
MyInfo(2) = 20020211
MyInfo(3) = 5
MyInfo(4) = "Student"
MyInfo(5) = 4587
However my array looks like this one right now:
=================================
MyInfo(0) = "1250A"
MyInfo(1) = "James "
MyInfo(2) = "Fernandez"
MyInfo(3) = 20020211
MyInfo(4) = 5
MyInfo(5) = "Student"
MyInfo(6) = ""
MyInfo(7) = 4587
Any advice how to fix this problem, it will be appreciated it.
Thanks to all for your knowledge
Daniel
Hollywood, FL