Link to home
Start Free TrialLog in
Avatar of adspmo
adspmo

asked on

Script Question, How do I concatenate two fields

Hi Guys

I am doing an import from excel
Normally I would use :
doc.NameAH = result.GetValue( "NameAH" )

However in this case the excell spreadsheet contains First Name Last Name

I would like to concatenate those into one field at import
Can this be done;

James
Avatar of HemanthaKumar
HemanthaKumar

Wouldn't it be like this

firstName = result.GetValue( "NameAH" )
lastName = result.GetValue( "LastNameAH" )
doc.NameAH = lastName + "," + firstName


~Hemanth
Avatar of adspmo

ASKER

Hey I will try that out

Thanx

james
ASKER CERTIFIED SOLUTION
Avatar of qwaletee
qwaletee

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of adspmo

ASKER

Yupp

I am using ODBC to import one time into Notes
wasn't that the same answer that I gave you James.. are you going blind here ??
No, Hemanth, you deserved much of the points.  I corrected the order, that's all.  You had "ln, fn" where James wanted "fn ln".  if James had asked, I would have suggested 130 to you, 120 to me.