Solved

shorting a name

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Dreamweaver server behavior gone 6 147
Issues with Insert statement 12 29
ASP server side get value 15 35
Syntax for query to update table 2 29
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…
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 …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

861 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