473,394 Members | 1,701 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,394 software developers and data experts.

Visual Studio - Sentence Case

hi all

sorry if this is in the wrong group -

I have just started using Visual Studio.net 2003 - MSDN reporting tools - I
come from a MS Access Background

I need to verify sentence case

eg emailid - should show Jo********@aaaa.co.nz - and not
jo********@aaaa.co.nz

how do I set this up

my fields will be:
SELECT clientcode // firstname // lastname // emailid
FROM client
WHERE client.emailid ?????????

well I am presuming this is where I am heading!

thanks

Nov 22 '05 #1
4 4359
Hi Jewel,

You could use String.ToLower on the address.

string s = "Jo********@aaaa.co.nz";
s = s.ToLower();
--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 22 '05 #2
Morten gives half the answer. First change all characters to lower
case as he explains, then use the TitleCase method of the TextInfo
class as this article [1] explains. Doing so would be one way
to obtain 'validated' results.

Google: "sentence case"+"asp.net"

--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

[1] http://www.codeassist.com/Default.as...5&g=posts&t=52

"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opsf9c7tegklbvpo@pbn_computer...
Hi Jewel,

You could use String.ToLower on the address.

string s = "Jo********@aaaa.co.nz";
s = s.ToLower();
--
Happy Coding!
Morten Wennevik [C# MVP]

Nov 22 '05 #3
Morten gives half the answer. First change all characters to lower
case as he explains, then use the TitleCase method of the TextInfo
class as this article [1] explains. Doing so would be one way
to obtain 'validated' results.

Google: "sentence case"+"asp.net"

--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

[1] http://www.codeassist.com/Default.as...5&g=posts&t=52

"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opsf9c7tegklbvpo@pbn_computer...
Hi Jewel,

You could use String.ToLower on the address.

string s = "Jo********@aaaa.co.nz";
s = s.ToLower();
--
Happy Coding!
Morten Wennevik [C# MVP]

Nov 22 '05 #4
Hi Jewel,

Ok, you want to know about Proper case for the name and Lower case for the
email address. This is found in a handy function called StrConv. Please see
the code snippet below as an example of how StrConv is used.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

Dim strFirstName As String
Dim strLastName As String
Dim strEmailId As String
Dim strEmailAddress As String
strFirstName = "JOHN"
strLastName = "SMITH"
strEmailId = "AOL.COM"
strFirstName = StrConv(strFirstName, VbStrConv.ProperCase)
strLastName = StrConv(strLastName, VbStrConv.ProperCase)
strEmailId = StrConv(strEmailId, VbStrConv.LowerCase)
strEmailAddress = strFirstName & strLastName & "@" & strEmailId

MsgBox(strEmailAddress, MsgBoxStyle.Information, "Example")

End Sub

Rachel Kozlowski

"Jewel" wrote:
hi all

sorry if this is in the wrong group -

I have just started using Visual Studio.net 2003 - MSDN reporting tools - I
come from a MS Access Background

I need to verify sentence case

eg emailid - should show Jo********@aaaa.co.nz - and not
jo********@aaaa.co.nz

how do I set this up

my fields will be:
SELECT clientcode // firstname // lastname // emailid
FROM client
WHERE client.emailid ?????????

well I am presuming this is where I am heading!

thanks

Nov 22 '05 #5

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

Similar topics

6
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
5
by: K. Shier | last post by:
when attempting to edit code in a class file, i see the bug "Visual Basic ..NET compiler is unable to recover from the following error: System Error &Hc0000005&(Visual Basic internal compiler...
3
by: Jewel | last post by:
hi all sorry if this is in the wrong group - I have just started using Visual Studio.net 2003 - MSDN reporting tools - I come from a MS Access Background I need to verify sentence case ...
3
by: dave | last post by:
ISBN 1-861000-88-X I'm confused about these references to the usage of recursion pertaining to example Ex6_08A: On page 236 in the last sentence of the 3rd paragraph "Since any set of...
1
by: Mike | last post by:
Hello, I hope there is a solution to this. I am required to develop a service application using Visual Studio ..NET. I am required to develop it using C++. Originally we set out using...
8
by: Will Chamberlain | last post by:
I came across a rather interesting article this morning and thought I'd share. We all know that Visual Studio is a great IDE, but I think we can all agree that it is adds a dramatic change to how...
123
by: Lane Straatman | last post by:
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <complex.h> /* double complex z1, z2, z3; bool flag; z1 = .4 + .7I; z2 = cpow(z1, 2.0); z3 = z1 * z1;
33
by: Ioannis Vranos | last post by:
A bit off topic, but does anyone know if Visual C++ 6 supports the 9899:1995, or only the 9899:1990?
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
13
by: miztaken | last post by:
Hi, My C# application have a following code to create an instance of Visual Studio. System.Type type = System.Type.GetTypeFromProgID("VisualStudio.DTE. 8.0"); Object obj =...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
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.