Click here to Skip to main content
15,915,603 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: The Recordset Fields property/collection Pin
Dave Kreskowiak29-Nov-03 6:27
mveDave Kreskowiak29-Nov-03 6:27 
GeneralRe: The Recordset Fields property/collection Pin
Cliff Wellman1-Dec-03 2:04
Cliff Wellman1-Dec-03 2:04 
General[Urgent] NT EventLogs Pin
Mojera26-Nov-03 1:12
sussMojera26-Nov-03 1:12 
GeneralRe: [Urgent] NT EventLogs Pin
Dave Kreskowiak29-Nov-03 6:25
mveDave Kreskowiak29-Nov-03 6:25 
GeneralChanging letter casing Pin
justmeTW26-Nov-03 0:52
justmeTW26-Nov-03 0:52 
GeneralRe: Changing letter casing Pin
Colin Angus Mackay29-Nov-03 17:28
Colin Angus Mackay29-Nov-03 17:28 
GeneralRe: Changing letter casing Pin
justmeTW29-Nov-03 17:38
justmeTW29-Nov-03 17:38 
GeneralRe: Changing letter casing Pin
Colin Angus Mackay29-Nov-03 18:02
Colin Angus Mackay29-Nov-03 18:02 
I see a couple of ways.

1. Don't bother with a test and just do it this way:
s = s.Substring(0,1).ToUpper() + s.Substring(1);

You may need to test the length and conditionally omit the + s.Substring(1)

2. Get the first character, cast it to a number and test the range. You'll need to find an ASCII table, because I can't remember the codes.

Option 1 may be better as the ToUpper() and ToLower() methods are culturally aware - If you have accented characters like áéíóú it will get them too, whereas with option 2 you need to find all possibilities yourself.


--Colin Mackay--

"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown)


GeneralRe: Changing letter casing Pin
justmeTW29-Nov-03 23:11
justmeTW29-Nov-03 23:11 
GeneralRe: Changing letter casing Pin
Colin Angus Mackay30-Nov-03 11:28
Colin Angus Mackay30-Nov-03 11:28 
GeneralUsing a vb ocx in vc++ Pin
percyvimal25-Nov-03 19:19
percyvimal25-Nov-03 19:19 
GeneralRe: Using a vb ocx in vc++ Pin
Dave Kreskowiak29-Nov-03 6:13
mveDave Kreskowiak29-Nov-03 6:13 
GeneralIncrement CD songs with VB.NET Pin
Anonymous25-Nov-03 18:03
Anonymous25-Nov-03 18:03 
GeneralInput Boxes in VB.Net2003 Pin
BooleanOperator25-Nov-03 17:43
BooleanOperator25-Nov-03 17:43 
GeneralLoading A Data Grid from A Module Pin
wvjim25-Nov-03 10:02
wvjim25-Nov-03 10:02 
GeneralRe: Loading A Data Grid from A Module Pin
Anonymous26-Nov-03 23:57
Anonymous26-Nov-03 23:57 
GeneralRe: Loading A Data Grid from A Module Pin
Dave Kreskowiak29-Nov-03 6:04
mveDave Kreskowiak29-Nov-03 6:04 
GeneralNeed help with class design: data types, etc Pin
Toni Danza25-Nov-03 10:01
Toni Danza25-Nov-03 10:01 
GeneralVB.NET toolbar in mdi parent window Pin
krolrules25-Nov-03 4:50
krolrules25-Nov-03 4:50 
GeneralRe: VB.NET toolbar in mdi parent window Pin
Dave Kreskowiak25-Nov-03 8:11
mveDave Kreskowiak25-Nov-03 8:11 
QuestionHow to safely disconnect from a webcam .... Pin
Mohan G25-Nov-03 4:20
Mohan G25-Nov-03 4:20 
AnswerRe: How to safely disconnect from a webcam .... Pin
Dave Kreskowiak25-Nov-03 7:41
mveDave Kreskowiak25-Nov-03 7:41 
GeneralRe: How to safely disconnect from a webcam .... Pin
Mohan G30-Nov-03 0:32
Mohan G30-Nov-03 0:32 
GeneralRe: How to safely disconnect from a webcam .... Pin
Dave Kreskowiak30-Nov-03 11:25
mveDave Kreskowiak30-Nov-03 11:25 
GeneralRe: How to safely disconnect from a webcam .... Pin
Mohan G30-Nov-03 18:58
Mohan G30-Nov-03 18:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.