Solved

Simple text field question

Posted on 2013-10-29
6
287 Views
Last Modified: 2013-10-29
Hi, I haven't used CR for years and have completely forgotten how to do this.

I have a field on the report which prints a user ID.
This at the moment just dumps first initial and surname like as it is stored in the DB e.g. "auser"

Instead, I would like it to display "A User"

Thanks.
0
Comment
Question by:scribla
  • 3
  • 2
6 Comments
 
LVL 8

Expert Comment

by:5teveo
ID: 39608616
Try somehting like this...

I used string... just alter to variable of type string
 
Uppercase(Left('auser',1)) + ' ' + Propercase(Right('auser',length('auser')-1))
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39608627
What version of Crystal?

As I recall ProperCase was added in the newer versions so you may have to do this as

Uppercase(Left({YourField},1)) + ' ' + Upppercase(Mid({YourField},2,1))  + Mid({YourField},3)

mlmcc
0
 
LVL 2

Author Comment

by:scribla
ID: 39608648
Ok, I need a little help here.
At the moment it looks like a text box called "Approver" when I hover on it it says "UDEF_PR_NARRATIVE.Approver (String)"

So to do the above, would I right click that box > format field, and on the Common Tab, click on the X-2 box in the section at the bottom that says "Display String" ?
0
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.

 
LVL 2

Author Comment

by:scribla
ID: 39608650
Oh sorry CRv10 btw.
0
 
LVL 8

Accepted Solution

by:
5teveo earned 500 total points
ID: 39608677
Create a new formula Field and name it 'Approver' - (any name will do) then

Add formula below.... afterwards drop this formula on report.

Uppercase(Left({UDEF_PR_NARRATIVE.Approver},1)) + ' ' + Propercase(Right({UDEF_PR_NARRATIVE.Approver},length({UDEF_PR_NARRATIVE.Approver})-1))
0
 
LVL 2

Author Closing Comment

by:scribla
ID: 39608784
Perfect, bang on!

Thanks.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 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