Click here to Skip to main content
15,921,028 members
Home / Discussions / C#
   

C#

 
QuestionIs possible to create or DLL/OCX by using C# and use in VB6? Pin
cocoonwls17-Nov-08 22:32
cocoonwls17-Nov-08 22:32 
AnswerRe: Is possible to create or DLL/OCX by using C# and use in VB6? Pin
Pedram Behroozi17-Nov-08 22:46
Pedram Behroozi17-Nov-08 22:46 
AnswerRe: Is possible to create or DLL/OCX by using C# and use in VB6? Pin
Eddy Vluggen18-Nov-08 3:14
professionalEddy Vluggen18-Nov-08 3:14 
QuestionHow do you talk to a remote serial port over a network? Pin
alb1081117-Nov-08 22:04
alb1081117-Nov-08 22:04 
Questionchange the shape of the form Pin
prasadbuddhika17-Nov-08 21:54
prasadbuddhika17-Nov-08 21:54 
AnswerRe: change the shape of the form Pin
Giorgi Dalakishvili17-Nov-08 22:04
mentorGiorgi Dalakishvili17-Nov-08 22:04 
Questioncomparing ascii values Pin
joindotnet17-Nov-08 21:28
joindotnet17-Nov-08 21:28 
AnswerRe: comparing ascii values Pin
Simon P Stevens17-Nov-08 21:51
Simon P Stevens17-Nov-08 21:51 
Well the error you are getting is because you missed the () from after the ToLower. It's a method call so you need the brackets. C# isn't like VB, you can't miss out the brackets if you don't pass any parameters.

But your next problem is you can't use '<' to compare two strings. '<' only works on Char data types, not Strings. You could call .ToCharArray() on your string to get it as a character array and pick out the character from the array you want to look at, and then if you use single quotes (') rather than double quotes (") for the 'a' then that will be treated as a character too. But that would be a rather painful way of doing it.

There are built in functions to do this kind of thing. Just do this:
Char.IsLetter(yourString, i);


Simon

GeneralRe: comparing ascii values [modified] Pin
Pedram Behroozi17-Nov-08 22:20
Pedram Behroozi17-Nov-08 22:20 
GeneralRe: comparing ascii values Pin
Guffa17-Nov-08 22:22
Guffa17-Nov-08 22:22 
GeneralRe: comparing ascii values Pin
Simon P Stevens17-Nov-08 22:43
Simon P Stevens17-Nov-08 22:43 
GeneralRe: comparing ascii values Pin
Guffa17-Nov-08 23:47
Guffa17-Nov-08 23:47 
GeneralRe: comparing ascii values Pin
Simon P Stevens18-Nov-08 0:10
Simon P Stevens18-Nov-08 0:10 
AnswerRe: comparing ascii values Pin
Guffa17-Nov-08 22:27
Guffa17-Nov-08 22:27 
GeneralRe: comparing ascii values Pin
Pedram Behroozi17-Nov-08 22:40
Pedram Behroozi17-Nov-08 22:40 
GeneralRe: comparing ascii values Pin
Guffa17-Nov-08 23:38
Guffa17-Nov-08 23:38 
QuestionMQ Submission from Web Application Pin
a115947617-Nov-08 21:21
a115947617-Nov-08 21:21 
QuestionADO.net not unqiue column names Pin
BlaiN17-Nov-08 20:47
BlaiN17-Nov-08 20:47 
AnswerRe: ADO.net not unqiue column names Pin
Giorgi Dalakishvili17-Nov-08 20:57
mentorGiorgi Dalakishvili17-Nov-08 20:57 
GeneralRe: ADO.net not unqiue column names Pin
BlaiN17-Nov-08 21:42
BlaiN17-Nov-08 21:42 
QuestionControls added to FlowLayoutPanel at runtime are not shown ? Pin
Sperneder Patrick17-Nov-08 20:46
professionalSperneder Patrick17-Nov-08 20:46 
AnswerRe: Controls added to FlowLayoutPanel at runtime are not shown ? Pin
Pedram Behroozi17-Nov-08 21:24
Pedram Behroozi17-Nov-08 21:24 
GeneralRe: Controls added to FlowLayoutPanel at runtime are not shown ? Pin
Sperneder Patrick17-Nov-08 22:32
professionalSperneder Patrick17-Nov-08 22:32 
GeneralRe: Controls added to FlowLayoutPanel at runtime are not shown ? Pin
Pedram Behroozi18-Nov-08 0:52
Pedram Behroozi18-Nov-08 0:52 
GeneralRe: Controls added to FlowLayoutPanel at runtime are not shown ? Pin
Sperneder Patrick18-Nov-08 0:53
professionalSperneder Patrick18-Nov-08 0:53 

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.