Click here to Skip to main content
15,898,371 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# .net.Mail Pin
Gaurav Dudeja India22-Feb-10 19:20
Gaurav Dudeja India22-Feb-10 19:20 
AnswerRe: C# .net.Mail Pin
Richard MacCutchan22-Feb-10 22:16
mveRichard MacCutchan22-Feb-10 22:16 
QuestionBest way to read ASCII input [modified] Pin
spainchaud22-Feb-10 6:13
spainchaud22-Feb-10 6:13 
AnswerRe: Best way to read ASCII input Pin
harold aptroot22-Feb-10 6:32
harold aptroot22-Feb-10 6:32 
GeneralRe: Best way to read ASCII input Pin
spainchaud22-Feb-10 6:38
spainchaud22-Feb-10 6:38 
AnswerRe: Best way to read ASCII input [modified] Pin
Saksida Bojan22-Feb-10 6:36
Saksida Bojan22-Feb-10 6:36 
GeneralRe: Best way to read ASCII input Pin
harold aptroot22-Feb-10 6:39
harold aptroot22-Feb-10 6:39 
AnswerRe: Best way to read ASCII input Pin
Dr.Walt Fair, PE22-Feb-10 7:03
professionalDr.Walt Fair, PE22-Feb-10 7:03 
I think you have a typo in this line and are missing some curly braces.

if (firstword.CompareTo("FORMATIOM") == 0)
formation = new Formation();
readMode = "FORMATION";


In addition, you can just use
firstword == "FORMATION"
, but I would force a convert to uppercase with
firstword.ToUpper() 
if there is no guarantee that input will be uppercase.

Finally, if those lines or similar are found in all input sequences, there is some room to generalize the input section, but I have no way of knowing whether that is the case or not.

I'm curious, from the input, are you working on geological or reservoir engineering software? I do some of that, so the input looks somewhat familiar.
CQ de W5ALT

Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software


GeneralRe: Best way to read ASCII input Pin
spainchaud22-Feb-10 8:48
spainchaud22-Feb-10 8:48 
GeneralRe: Best way to read ASCII input Pin
Dr.Walt Fair, PE22-Feb-10 9:23
professionalDr.Walt Fair, PE22-Feb-10 9:23 
GeneralRe: Best way to read ASCII input Pin
Scott Serl22-Feb-10 10:13
Scott Serl22-Feb-10 10:13 
QuestionReports Pin
muka6622-Feb-10 3:22
muka6622-Feb-10 3:22 
AnswerRe: Reports Pin
Not Active22-Feb-10 3:42
mentorNot Active22-Feb-10 3:42 
GeneralRe: Reports Pin
Anubhava Dimri22-Feb-10 18:18
Anubhava Dimri22-Feb-10 18:18 
QuestionDecrypting a text using Rijndael Pin
3bood.ghzawi22-Feb-10 2:52
3bood.ghzawi22-Feb-10 2:52 
QuestionDecrypting a text using Rijndael Pin
3bood.ghzawi22-Feb-10 2:51
3bood.ghzawi22-Feb-10 2:51 
AnswerRe: Decrypting a text using Rijndael Pin
Not Active22-Feb-10 3:13
mentorNot Active22-Feb-10 3:13 
AnswerRe: Decrypting a text using Rijndael Pin
Keith Barrow22-Feb-10 4:20
professionalKeith Barrow22-Feb-10 4:20 
AnswerRe: Decrypting a text using Rijndael Pin
Luc Pattyn22-Feb-10 4:51
sitebuilderLuc Pattyn22-Feb-10 4:51 
GeneralRe: Decrypting a text using Rijndael Pin
Keith Barrow22-Feb-10 5:03
professionalKeith Barrow22-Feb-10 5:03 
GeneralRe: Decrypting a text using Rijndael Pin
Luc Pattyn22-Feb-10 5:49
sitebuilderLuc Pattyn22-Feb-10 5:49 
QuestionDatatable Pin
jojoba201122-Feb-10 2:36
jojoba201122-Feb-10 2:36 
AnswerRe: Datatable Pin
Not Active22-Feb-10 3:12
mentorNot Active22-Feb-10 3:12 
GeneralRe: Datatable Pin
jojoba201122-Feb-10 4:25
jojoba201122-Feb-10 4:25 
Questionidentify authorised user on web method using c# Pin
dalila y22-Feb-10 2:01
dalila y22-Feb-10 2: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.