Solved

shorting a name

Posted on 2006-06-24
2
228 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now