Click here to Skip to main content
15,901,505 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to avoid references Pin
Paul Evans20-Jan-04 22:56
Paul Evans20-Jan-04 22:56 
GeneralSTRING MANIPULATION Pin
POKRI20-Jan-04 3:31
POKRI20-Jan-04 3:31 
GeneralRe: STRING MANIPULATION Pin
Larry J. Siddens20-Jan-04 3:46
Larry J. Siddens20-Jan-04 3:46 
GeneralRe: STRING MANIPULATION Pin
Heath Stewart20-Jan-04 4:12
protectorHeath Stewart20-Jan-04 4:12 
GeneralRe: STRING MANIPULATION Pin
Larry J. Siddens20-Jan-04 5:59
Larry J. Siddens20-Jan-04 5:59 
GeneralRe: STRING MANIPULATION Pin
Heath Stewart20-Jan-04 6:05
protectorHeath Stewart20-Jan-04 6:05 
GeneralRe: STRING MANIPULATION Pin
Larry J. Siddens20-Jan-04 6:09
Larry J. Siddens20-Jan-04 6:09 
GeneralRe: STRING MANIPULATION Pin
Jose Fco Bonnin20-Jan-04 5:33
Jose Fco Bonnin20-Jan-04 5:33 
What about using regular expressions?

Something like:

public bool IsNaturalNumber(string sValue)
{
return (Regex.IsMatch(sValue, @"0*[1-9][0-9]*") && !Regex.IsMatch(sValue,@"[^0-9]"));
}
GeneralRe: STRING MANIPULATION Pin
Heath Stewart20-Jan-04 5:42
protectorHeath Stewart20-Jan-04 5:42 
GeneralRe: STRING MANIPULATION Pin
leppie20-Jan-04 6:23
leppie20-Jan-04 6:23 
GeneralRe: STRING MANIPULATION Pin
Jose Fco Bonnin21-Jan-04 4:07
Jose Fco Bonnin21-Jan-04 4:07 
GeneralRe: STRING MANIPULATION Pin
leppie21-Jan-04 6:09
leppie21-Jan-04 6:09 
GeneralRe: STRING MANIPULATION Pin
POKRI21-Jan-04 2:09
POKRI21-Jan-04 2:09 
GeneralOWC components Pin
pankajdaga20-Jan-04 3:13
pankajdaga20-Jan-04 3:13 
GeneralDirectX CaptureBuffer run-time error Pin
Shimi12319-Jan-04 23:42
Shimi12319-Jan-04 23:42 
GeneralRe: DirectX CaptureBuffer run-time error Pin
Shimi12320-Jan-04 3:02
Shimi12320-Jan-04 3:02 
GeneralData type lost when convertingto XML Pin
Yaron K.19-Jan-04 23:23
Yaron K.19-Jan-04 23:23 
GeneralRe: Data type lost when convertingto XML Pin
Heath Stewart20-Jan-04 4:05
protectorHeath Stewart20-Jan-04 4:05 
Generalcontrol in menu Pin
Mohamad Al Husseiny19-Jan-04 20:27
Mohamad Al Husseiny19-Jan-04 20:27 
GeneralInstaller startmenu question Pin
joepardue19-Jan-04 16:10
joepardue19-Jan-04 16:10 
GeneralRe: Installer startmenu question Pin
Shahin7719-Jan-04 17:46
Shahin7719-Jan-04 17:46 
GeneralRe: Installer startmenu question Pin
Heath Stewart19-Jan-04 20:23
protectorHeath Stewart19-Jan-04 20:23 
GeneralRe: Installer startmenu question Pin
joepardue20-Jan-04 4:23
joepardue20-Jan-04 4:23 
QuestionHow to get the target that *.lnk link to Pin
god4k19-Jan-04 16:07
god4k19-Jan-04 16:07 
GeneralImages, SQL and C# -PLEASE HELP Pin
Peter Greenall19-Jan-04 14:28
Peter Greenall19-Jan-04 14:28 

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.