Click here to Skip to main content
15,905,238 members
Home / Discussions / C#
   

C#

 
GeneralRe: Ajax slowing my search??? Pin
Larantz13-Jul-07 0:21
Larantz13-Jul-07 0:21 
GeneralRe: Ajax slowing my search??? Pin
Chris McGlothen13-Jul-07 4:34
Chris McGlothen13-Jul-07 4:34 
QuestionHelp with a search & replace Pin
rbuchana12-Jul-07 5:51
rbuchana12-Jul-07 5:51 
AnswerRe: Help with a search & replace Pin
User 665812-Jul-07 6:06
User 665812-Jul-07 6:06 
AnswerRe: Help with a search & replace Pin
Luc Pattyn12-Jul-07 6:12
sitebuilderLuc Pattyn12-Jul-07 6:12 
QuestionProblem Connecting to MQ on unix from .NET application Pin
unnamed00712-Jul-07 4:51
unnamed00712-Jul-07 4:51 
QuestionString containing digit or Alphabet Pin
t4ure4n12-Jul-07 4:33
t4ure4n12-Jul-07 4:33 
AnswerRe: String containing digit or Alphabet Pin
User 665812-Jul-07 4:43
User 665812-Jul-07 4:43 
t4urean wrote:
How do i detect if variable has digit in it or an alphabet.


In terms of an exclusive or?

To check, if the string is a number:

int i = int.TryParse(input)

If it's just one digit:

int i = int.TryParse(input) and then i =< 9 && i >= 0

If it contains one or more alphabets:

bool b = Regex.IsMatch(input, "[a-zA-Z]")

regards

modified 12-Sep-18 21:01pm.

AnswerRe: String containing digit or Alphabet Pin
Luc Pattyn12-Jul-07 4:45
sitebuilderLuc Pattyn12-Jul-07 4:45 
AnswerRe: String containing digit or Alphabet Pin
Christian Graus12-Jul-07 4:53
protectorChristian Graus12-Jul-07 4:53 
QuestionIOException Problem... Pin
Andy Spier12-Jul-07 4:23
Andy Spier12-Jul-07 4:23 
AnswerRe: IOException Problem... Pin
Luc Pattyn12-Jul-07 4:28
sitebuilderLuc Pattyn12-Jul-07 4:28 
GeneralRe: IOException Problem... Pin
Andy Spier12-Jul-07 4:33
Andy Spier12-Jul-07 4:33 
GeneralRe: IOException Problem... Pin
Luc Pattyn12-Jul-07 4:52
sitebuilderLuc Pattyn12-Jul-07 4:52 
GeneralRe: IOException Problem... Pin
Andy Spier12-Jul-07 4:59
Andy Spier12-Jul-07 4:59 
GeneralRe: IOException Problem... Pin
Luc Pattyn12-Jul-07 5:18
sitebuilderLuc Pattyn12-Jul-07 5:18 
GeneralRe: IOException Problem... Pin
Andy Spier12-Jul-07 5:27
Andy Spier12-Jul-07 5:27 
GeneralRe: IOException Problem... Pin
Luc Pattyn12-Jul-07 5:50
sitebuilderLuc Pattyn12-Jul-07 5:50 
GeneralRe: IOException Problem... Pin
Luc Pattyn12-Jul-07 5:54
sitebuilderLuc Pattyn12-Jul-07 5:54 
AnswerRe: IOException Problem... Pin
martin_hughes12-Jul-07 10:52
martin_hughes12-Jul-07 10:52 
GeneralRe: IOException Problem... Pin
Andy Spier12-Jul-07 16:19
Andy Spier12-Jul-07 16:19 
GeneralRe: IOException Problem... Pin
Andy Spier14-Jul-07 8:50
Andy Spier14-Jul-07 8:50 
QuestionWrapper class Pin
ramdil12-Jul-07 4:00
ramdil12-Jul-07 4:00 
AnswerRe: Wrapper class Pin
originSH12-Jul-07 4:05
originSH12-Jul-07 4:05 
GeneralRe: Wrapper class Pin
ramdil12-Jul-07 5:43
ramdil12-Jul-07 5:43 

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.