Solved

UpCase limitation in french

Posted on 1998-01-15
4
130 Views
Last Modified: 2010-04-04
I need to upcase the first letter of a string. But when the the first caracter contain an accent (eg. e acute or a grave)the UpCase fonction let it in downcase. Any idea!
0
Comment
Question by:pjroy
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
itamar earned 100 total points
ID: 1356840
Hi,

You must use AnsiUpperCase.

IHTH

0
 
LVL 5

Expert Comment

by:julio011597
ID: 1356841
Or write a few lines of code, in order to be sure your code works on any machine.

Let me know if you need it.
0
 

Author Comment

by:pjroy
ID: 1356842
I use code like the one above to upcase only the first, but I got an imcompatible type error.

descrition: string
description[1] := AnsiUpperCase(description[1]);

Can you help me on the use of string type
0
 
LVL 4

Expert Comment

by:itamar
ID: 1356843
Hi pjrov,

Your question induced me to focus in the accent problem.
I guess you had the same type error with UpperCase, don't you ?

The best conduct in such case would be placing a comment before grading the answer - you gave me a B )-:<

Anyway, I think I can help you. Change your code to:

descrition: string
description[1] := AnsiUpperCase(description[1])[1];

No, this is not a mistyping !!! I know it looks strange but it works...

IHTH

P.S.: If you want a piece of code that upcases (?) the first letter of a text while it is being typed by the user in a edit or combo box, place another question and I can send it for you. Bye.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 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

19 Experts available now in Live!

Get 1:1 Help Now