Click here to Skip to main content
15,881,380 members
Home / Discussions / C#
   

C#

 
GeneralRe: can u help me with a if question? Pin
andredani6-Sep-07 4:02
andredani6-Sep-07 4:02 
GeneralRe: can u help me with a if question? Pin
TJoe6-Sep-07 5:29
TJoe6-Sep-07 5:29 
GeneralRe: can u help me with a if question? Pin
andredani6-Sep-07 11:25
andredani6-Sep-07 11:25 
GeneralRe: can u help me with a if question? Pin
TJoe7-Sep-07 2:15
TJoe7-Sep-07 2:15 
GeneralRe: can u help me with a if question? Pin
andredani7-Sep-07 2:54
andredani7-Sep-07 2:54 
GeneralRe: can u help me with a if question? Pin
TJoe7-Sep-07 3:12
TJoe7-Sep-07 3:12 
GeneralRe: can u help me with a if question? Pin
andredani7-Sep-07 5:13
andredani7-Sep-07 5:13 
AnswerRe: can u help me with a if question? Pin
Luc Pattyn5-Sep-07 9:59
sitebuilderLuc Pattyn5-Sep-07 9:59 
lines[0] is the first line

lines[0][0] is the first char of the first line (but could throw an exception if
lines[0] is null or an empty string.

when checking for a single char, use '#' instead of "#"

string.StartsWith("#") seems appropriate here.
maybe you want to trim the line (with string.Trim()) before checking for #

Smile | :)


Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: can u help me with a if question? [modified] Pin
andredani5-Sep-07 11:31
andredani5-Sep-07 11:31 
QuestionWorkaround global variables? Pin
MeLight5-Sep-07 8:36
MeLight5-Sep-07 8:36 
AnswerRe: Workaround global variables? Pin
TJoe5-Sep-07 8:52
TJoe5-Sep-07 8:52 
AnswerRe: Workaround global variables? Pin
Christian Graus5-Sep-07 8:53
protectorChristian Graus5-Sep-07 8:53 
AnswerRe: Workaround global variables? Pin
Larantz5-Sep-07 8:53
Larantz5-Sep-07 8:53 
AnswerThanx Pin
MeLight5-Sep-07 8:57
MeLight5-Sep-07 8:57 
AnswerRe: Workaround global variables? Pin
Dave Kreskowiak5-Sep-07 9:08
mveDave Kreskowiak5-Sep-07 9:08 
Questionsizeof Pin
dino20945-Sep-07 8:26
dino20945-Sep-07 8:26 
AnswerRe: sizeof Pin
TJoe5-Sep-07 8:50
TJoe5-Sep-07 8:50 
GeneralRe: sizeof Pin
Luc Pattyn5-Sep-07 10:02
sitebuilderLuc Pattyn5-Sep-07 10:02 
GeneralRe: sizeof Pin
TJoe5-Sep-07 10:19
TJoe5-Sep-07 10:19 
GeneralRe: sizeof Pin
dino20945-Sep-07 11:54
dino20945-Sep-07 11:54 
QuestionProblem passing data to an activeX Pin
Paolo Vernazza5-Sep-07 6:55
Paolo Vernazza5-Sep-07 6:55 
AnswerRe: Problem passing data to an activeX Pin
TJoe5-Sep-07 8:23
TJoe5-Sep-07 8:23 
GeneralRe: Problem passing data to an activeX Pin
Paolo Vernazza6-Sep-07 1:57
Paolo Vernazza6-Sep-07 1:57 
GeneralRe: Problem passing data to an activeX Pin
TJoe6-Sep-07 2:13
TJoe6-Sep-07 2:13 
GeneralRe: Problem passing data to an activeX Pin
Paolo Vernazza6-Sep-07 4:33
Paolo Vernazza6-Sep-07 4:33 

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.