There is a recent post about parsing text via scripting. I have a similar question, but my issue is a bit different. I am pulling a name from datalinq.
Ex. STEWART,TREY
Here is the script I am using on the text object to delete the first name and just show the last name:
dim list(3) as string
'Check for a comma
if( InStr(text,",") > 0) then
list = split(text,",",2)
text = ltrim(list(0))
else
list = split(text," ",2)
text = ltrim(list(1))
end if
This script works fine for all names except for this one:
ADAMS JR.,MARCUS
I want the text object to read "ADAMS JR." and that is what shows in the preview window. But when I take the scene online, the text object reads "JR." only.
Any thoughts?
------------------------------
Matt Finlayson
Brigham Young University
------------------------------