473,395 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Changing all UPPER CASE to Initial Caps

Hello, MSA Group,
Does anyone know how to convert all UPPER CASE text to Initial Caps?
I'm familiar with ucase and lcase, but don't know of any function to
handle Initial Caps, i.e. every word between non breaking spaces are
Capitalized.

Thx,

Addio

Nov 13 '05 #1
3 13903
On 25 May 2005 14:36:34 -0700, Addio wrote:
Hello, MSA Group,
Does anyone know how to convert all UPPER CASE text to Initial Caps?
I'm familiar with ucase and lcase, but don't know of any function to
handle Initial Caps, i.e. every word between non breaking spaces are
Capitalized.

Thx,

Addio


[FieldName] = StrConv([FieldName])

This will not properly capitalize words which ought to contain more
than one capital letter, i.e. McGregor, O'Brien, IBM, etc. which
become Mcgregor, O'brien, Ibm, etc.

You will need to use a table of exceptions if this is of importance to
you.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #2
On Wed, 25 May 2005 21:51:31 GMT, fredg wrote:
On 25 May 2005 14:36:34 -0700, Addio wrote:
Hello, MSA Group,
Does anyone know how to convert all UPPER CASE text to Initial Caps?
I'm familiar with ucase and lcase, but don't know of any function to
handle Initial Caps, i.e. every word between non breaking spaces are
Capitalized.

Thx,

Addio


[FieldName] = StrConv([FieldName])

This will not properly capitalize words which ought to contain more
than one capital letter, i.e. McGregor, O'Brien, IBM, etc. which
become Mcgregor, O'brien, Ibm, etc.

You will need to use a table of exceptions if this is of importance to
you.


Oops!
That should have been, in VBA:
[FieldName] = StrConv([FieldName],3)

Or as the control source of an unbound control:
= StrConv([FieldName],3)

--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #3
"Addio" <gb********@lastar.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Hello, MSA Group,
Does anyone know how to convert all UPPER CASE text to Initial Caps?
I'm familiar with ucase and lcase, but don't know of any function to
handle Initial Caps, i.e. every word between non breaking spaces are
Capitalized.

Thx,

Addio


Try:
StrConv("HELLOOO!",vbProperCase)
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Mike S. Nowostawsky | last post by:
I tried using the "toUpperCase()" property to change the value of an array entity to uppercase BUT it tells me that the property is invalid. It seems that an array is not considered an object when...
3
by: Tegdeep | last post by:
Here's what I want to do: I have a hash table which contains data associated to different keys. The Hash keys are represented by a single character from the keyboard: 0-9, a-z, A-Z, and the...
2
by: Brad Smith | last post by:
I'm trying to clean up strings in a web form before I plug the fields into a database. Lots of folks like to leave caps lock key on and yell their form entries. I can figure out how to change...
5
by: Nelson | last post by:
In my web form, I am converting all lower case letters to upper case when the user types the characters in the edit boxes. I am achieving that by injecting client side script (onkeyup event) for...
6
by: feeman | last post by:
I can change a field to upper case by using the after event function and the following code Me. = UCase(Me.) But how can you do it so that the whole form will change to Uppercase, there are...
2
by: Tim_Mac | last post by:
hi, i'm referring to System.Globalization.TextInfo.ToTitleCase(string s) and it works fine if you pass in an all lower or mixed case string. however i am trying to make amends for data entry staff...
5
by: Matuag | last post by:
How can I enable Caps Lock after the form or database opens?
5
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
How can I force the users to enter characters in uppercase? I want to do this in a TextBox control of an aspx page. Then I want the same to be moved to inside a GridView control. Thanks.
13
by: Michael Bell | last post by:
Working my way through Koenig & Moo "Accelerated C++" and using Borlang Builder 5 (but that is probably not relevant) I reached exercise 1-1 and typed in #include <vcl.h> #pragma hdrstop...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.