473,795 Members | 2,667 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

proper case

is there function to do proper case formatting on a string? FoxPro use to
have a proper function that did this for you... thanks
Nov 21 '05 #1
12 1939
Brian,

Yes

StrConv
http://msdn.microsoft.com/library/de...fctstrconv.asp

I hope this helps?

Cor
Nov 21 '05 #2
thanks!

"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:et******** *****@TK2MSFTNG P11.phx.gbl...
Brian,

Yes

StrConv
http://msdn.microsoft.com/library/de...fctstrconv.asp

I hope this helps?

Cor

Nov 21 '05 #3
Dim m As New String("mylower ")

MsgBox(m.ToUppe r)
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Brian Henry" <br**********@n ewsgroups.nospa m> wrote in message
news:uY******** *****@TK2MSFTNG P12.phx.gbl...
thanks!

"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:et******** *****@TK2MSFTNG P11.phx.gbl...
Brian,

Yes

StrConv
http://msdn.microsoft.com/library/de...fctstrconv.asp
I hope this helps?

Cor


Nov 21 '05 #4
* "Brian Henry" <br**********@n ewsgroups.nospa m> scripsit:
is there function to do proper case formatting on a string?


\\\
Dim s As String = StrConv("hello world!", VbStrConv.Prope rCase)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #5
but wouldn't toupper convert every char in the string to uppercase? where
proper case would just say "My text string. This is fun." as where toupper
would be "MY TEXT STRING. THIS IS FUN."
"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in message
news:ur******** *****@TK2MSFTNG P12.phx.gbl...
Dim m As New String("mylower ")

MsgBox(m.ToUppe r)
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Brian Henry" <br**********@n ewsgroups.nospa m> wrote in message
news:uY******** *****@TK2MSFTNG P12.phx.gbl...
thanks!

"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:et******** *****@TK2MSFTNG P11.phx.gbl...
> Brian,
>
> Yes
>
> StrConv
> http://msdn.microsoft.com/library/de...fctstrconv.asp >
> I hope this helps?
>
> Cor
>
>



Nov 21 '05 #6
thats what i was looking for, thanks

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:e6******** ******@tk2msftn gp13.phx.gbl...
* "Brian Henry" <br**********@n ewsgroups.nospa m> scripsit:
is there function to do proper case formatting on a string?


\\\
Dim s As String = StrConv("hello world!", VbStrConv.Prope rCase)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #7
No it would return ( and display in this case ) a New string where all the
characters from the origional are converted to ToUpper. Strings in .NET are
immutable, you cannot convert them once they are created.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Brian Henry" <br**********@n ewsgroups.nospa m> wrote in message
news:e$******** *****@TK2MSFTNG P12.phx.gbl...
but wouldn't toupper convert every char in the string to uppercase? where
proper case would just say "My text string. This is fun." as where toupper
would be "MY TEXT STRING. THIS IS FUN."
"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in message news:ur******** *****@TK2MSFTNG P12.phx.gbl...
Dim m As New String("mylower ")

MsgBox(m.ToUppe r)
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Brian Henry" <br**********@n ewsgroups.nospa m> wrote in message
news:uY******** *****@TK2MSFTNG P12.phx.gbl...
thanks!

"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:et******** *****@TK2MSFTNG P11.phx.gbl...
> Brian,
>
> Yes
>
> StrConv
>

http://msdn.microsoft.com/library/de...fctstrconv.asp
>
> I hope this helps?
>
> Cor
>
>



Nov 21 '05 #8

"One Handed Man ( OHM - Terry Burns )" <news.microsoft .com> wrote in message
news:u3******** ******@tk2msftn gp13.phx.gbl...
No it would return ( and display in this case ) a New string where all the
characters from the origional are converted to ToUpper. Strings in .NET are immutable, you cannot convert them once they are created.


Yes, but the point is that he wanted PROPER case, not UPPER.
Nov 21 '05 #9
I was completly perplex when I saw this answer from you.

Here the thread where you showed StrConv and the discussion with Herfried.

http://tinyurl.com/5rzoe

To what I have looked at that time with a very big smile on my face.

Cor
Nov 21 '05 #10

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

Similar topics

2
2134
by: ToddT | last post by:
i'm trying to convert names to their proper case (e.g. "todd" -> "Todd") using the following rountine: Private Function ConvertToProperCase(ByVal stringValue As String) As String Dim ci As New System.Globalization.CultureInfo("en-US", False) Dim properCaseValue As String properCaseValue = stringValue.Replace("'", "' ")
6
4100
by: brian | last post by:
I went through my implementation's (BSD) source code for calloc(), and if no more than one object is being allocated, the code will still execute the following if() (from /usr/src/lib/libc/stdlib/calloc.c): if (num && size && SIZE_T_MAX / num < size) { errno = ENOMEM; return NULL; }
7
3896
by: John A Grandy | last post by:
does anyone know of an intrinsic .NET function , or font , or other mechanism , to do "proper-case all-caps" ... ? so, for a name like "Arnold Schwarzenegger" ... .... I want it entirely in capital letters , "ARNOLD SCHWARZENEGGER", *except* that the "A" and the "S" should be a slightly larger font-size than the rest of the letters ...
1
14855
by: Lal | last post by:
Dear all, Is any method to covert to proper case? like STORE 'VISUAL FOXPRO' TO gcExpr2 ? PROPER(gcExpr2) && Displays "Visual Foxpro" please help
9
2081
by: liljencrantz | last post by:
Hi, I have a piece of code that uses hashtables to store pointers to various bits of data. The hashtable sees all pointers as const void *, while the application obviously uses various other pointer types for the data. I've run into a warning with the following code: void hash_remove( hash_table_t *h, const void *key, const void **old_key,
0
883
by: RajaniP | last post by:
What should we do in the case SQL was installed without the proper case order? How can we determine what case order SQL was installed with?
6
1881
by: mattmao | last post by:
Hi all. There is a challenge question I encountered recently, which says: "In plain English, there are six different ways when you want to tell someone else about the current time: It is five past seven. It is eleven to ten. It is half past nine. It is a quarter past eight. It is a quarter to ten.
2
2242
by: CD | last post by:
I have a asp page pulling results from an Access DB. I have no control of the data input to the db. All the information is entered in Upper case. It contains fields like address, city, etc.. DB data: AddressColumn: 123 BILL AVENUE format to 123 Bill Avenue Is there a way to format the data on the webpage in proper case with a fucntion or routine? I am not a programmer by trade but can follow logic.
3
4870
by: =?Utf-8?B?RGV2b24=?= | last post by:
Is it possible to retrieve a proper/invariant file or directory name using a lowercase full path string without having to resort to a call to GetDirectories()/GetFiles() using the directory/filename as the search string? While Path, FileInfo, and DirectoryInfo all store the path information, they use the path case passed to them, so passing a lowercase path to Path.GetFullPath() will return a lowercase full path. TIA
0
9672
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
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10436
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10213
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...
0
10000
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...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5436
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
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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

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.