473,386 Members | 1,830 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,386 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 4358
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.