Click here to Skip to main content
15,890,186 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to check current date falls between start date and end date? [modified] Pin
Simon P Stevens1-Apr-08 4:04
Simon P Stevens1-Apr-08 4:04 
AnswerRe: How to check current date falls between start date and end date? Pin
DaveyM691-Apr-08 4:11
professionalDaveyM691-Apr-08 4:11 
GeneralRe: How to check current date falls between start date and end date? Pin
Simon P Stevens1-Apr-08 6:25
Simon P Stevens1-Apr-08 6:25 
GeneralRe: How to check current date falls between start date and end date? Pin
DaveyM691-Apr-08 10:38
professionalDaveyM691-Apr-08 10:38 
QuestionHow use a decimal number from a Commandline Pin
megabrain1-Apr-08 2:17
megabrain1-Apr-08 2:17 
AnswerRe: How use a decimal number from a Commandline Pin
Luc Pattyn1-Apr-08 3:17
sitebuilderLuc Pattyn1-Apr-08 3:17 
GeneralRe: How use a decimal number from a Commandline Pin
megabrain1-Apr-08 3:32
megabrain1-Apr-08 3:32 
GeneralRe: How use a decimal number from a Commandline Pin
Luc Pattyn1-Apr-08 3:40
sitebuilderLuc Pattyn1-Apr-08 3:40 
Hi,

a command line is just text, so it is only natural Environment.CommandLine
and Environment.GetCommandLineArgs return one or several strings.

to interpret a textual representation of some data, you need to "parse" it;
most primitive data types provide a Parse() and TryParse() method for exactly that
purpose.

if you need a double, and your input format is likely to be in an acceptable format
for it (as in .7), then just do bool success=double.TryParse(myString, myDouble)

When in doubt, look it up; the documentation is eager to be your friend.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: How use a decimal number from a Commandline Pin
J4amieC1-Apr-08 3:58
J4amieC1-Apr-08 3:58 
GeneralRe: How use a decimal number from a Commandline Pin
Luc Pattyn1-Apr-08 4:12
sitebuilderLuc Pattyn1-Apr-08 4:12 
GeneralRe: How use a decimal number from a Commandline Pin
megabrain1-Apr-08 4:32
megabrain1-Apr-08 4:32 
Questionhow to show image during saving data? Pin
samrat.net1-Apr-08 2:12
samrat.net1-Apr-08 2:12 
AnswerRe: how to show image during saving data? Pin
laserbaronen1-Apr-08 2:17
laserbaronen1-Apr-08 2:17 
GeneralRe: how to show image during saving data? Pin
samrat.net1-Apr-08 2:27
samrat.net1-Apr-08 2:27 
Questionnew window refreshing Pin
chaubeyb1-Apr-08 1:47
chaubeyb1-Apr-08 1:47 
GeneralRe: new window refreshing Pin
Eduard Keilholz1-Apr-08 2:07
Eduard Keilholz1-Apr-08 2:07 
GeneralRe: new window refreshing Pin
Pete O'Hanlon1-Apr-08 2:07
mvePete O'Hanlon1-Apr-08 2:07 
GeneralRe: new window refreshing Pin
varun.g1-Apr-08 5:02
varun.g1-Apr-08 5:02 
GeneralDoubt in Object. Equals() method Pin
Darmi1-Apr-08 1:38
Darmi1-Apr-08 1:38 
GeneralRe: Doubt in Object. Equals() method Pin
C1AllenS1-Apr-08 2:32
C1AllenS1-Apr-08 2:32 
GeneralRe: Doubt in Object. Equals() method Pin
carbon_golem1-Apr-08 2:43
carbon_golem1-Apr-08 2:43 
GeneralRe: Doubt in Object. Equals() method Pin
Darmi1-Apr-08 17:14
Darmi1-Apr-08 17:14 
GeneralRe: Doubt in Object. Equals() method Pin
Guffa1-Apr-08 2:48
Guffa1-Apr-08 2:48 
Generalnetwork, C#, Interface, IOControl Pin
pedefetoll1-Apr-08 1:37
pedefetoll1-Apr-08 1:37 
GeneralPc Pin
ellllllllie1-Apr-08 1:01
ellllllllie1-Apr-08 1:01 

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.