473,661 Members | 2,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 13920
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********@las tar.com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.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("HELLOO O!",vbProperCas e)
Nov 13 '05 #4

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

Similar topics

8
10218
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 it is assigned a text literal?? HOW can I change the array value to upper case then? What other method exists for arrays? Ex: var GridArrayName1 = new Array(); GridArrayName1 = new Array ('test-value'); GridArrayName1 = GridArrayName1...
3
7965
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 other special characters. I want my program to detect what key the user pressed from the keyboard and get the associated data from the hash table (associated with the key he pressed which is the same as the hash key). The user can also decide to...
2
3364
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 strings to sentence case, but I don't want to do it to every string since some correctly entered words e.g. "to" would be converted unnecessarily (to "To"). I'm willing to live with the over correction on a few strings, but don't want to apply it...
5
10275
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 each text box. However if the user types the characters so fast it may not work.. Also there are some other loopholes in my code. Is there any approach in ASP.Net to make sure whenever the user types lower case, the data will be converted to upper...
6
9889
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 20 fields on this form, and I would have to do the above for all of them. There must be a faster way. Anybody know the answer
2
7460
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 who like to leave Caps Lock on all the time, so all the input is in upper case. ToTitleCase("CORK") returns "CORK" instead of "Cork". any ideas why? i can obviously sent all the strings ToLower before calling ToTitleCase but that seems like a...
5
3975
by: Matuag | last post by:
How can I enable Caps Lock after the form or database opens?
5
4504
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
1705
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 #include <iostream> #include <string> int main(int argc, char*argv}
0
8432
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8762
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8545
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1992
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.