Solved

shorting a name

Posted on 2006-06-24
2
236 Views
Last Modified: 2012-06-21
Hello,

I have this <%=(ReclillsPlus.Fields.Item("firstname_usr").Value)%> but I only want to show the first letter of the persons name, how can I shorten it so only the first letter is shown.

regards

kenny
0
Comment
Question by:thatelvis
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 125 total points
ID: 16974960
<%= Left(ReclillsPlus("firstname_usr"), 1) %>
0
 
LVL 6

Expert Comment

by:darkeryu
ID: 16975406
Hi:
displayCharnum = 10
if  len(ReclillsPlus.Fields.Item("firstname_usr").Value)>0 then
  if len(ReclillsPlus.Fields.Item("firstname_usr").Value)  > displayCharnum then
    response.write mid(ReclillsPlus.Fields.Item("firstname_usr").Value,1,displayCharnum)
  else
    response.write ReclillsPlus.Fields.Item("firstname_usr").Value
  end if

end if
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

803 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