Your statement is basically true.
AND
When I looked through the data, I do have a number of records where there is no "/". However, all those records have the info in the format of FirstName LastName. For purposes of printing labels via Paradox, that works out ok. I formatted the labels as...
Tony,
My deepest thanks. I took what you wrote and again modified it as follows:
tc."FIRSTNAME".breakapart(arField,"/")
if arField.size()>1 then
tc."LASTNAME"=arField[1]
tc."FIRSTNAME"=arField[2]
else
endif
It ran just fine. Thank you, thank you.!!
Tony,
Thanks for the quick reply. I took what you showed me and modified as follows:
var
arField Array[] string
tc tcursor
endvar
tc.open("Mail2tmp.dbf")
tc.edit()
scan tc:
tc."FIRSTNAME".breakapart(arField,"/")
tc."FIRSTNAME"=arField[2]+" "+arField[1]
endscan
tc.endedit()...
I have a data file I want to use that has Name field with the data in the format of
LastName/ Firstname
I need it in the format
FirstName Lastname.
I have not been able to find any examples to write a short Objectpal script to do this. Can someone please help?
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.