Solved

Script Question, How do I concatenate two fields

Posted on 2003-11-28
6
270 Views
Last Modified: 2013-12-18
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
0
Comment
Question by:adspmo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9840620
Wouldn't it be like this

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


~Hemanth
0
 

Author Comment

by:adspmo
ID: 9840728
Hey I will try that out

Thanx

james
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 250 total points
ID: 9844033
Or rather,

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

Or

doc.NameAH = firstName & " " & lastName

I take it you are using LotusScript to access Excel via OLE Automation?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:adspmo
ID: 9846218
Yupp

I am using ODBC to import one time into Notes
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9850355
wasn't that the same answer that I gave you James.. are you going blind here ??
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 9854859
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.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question