Click here to Skip to main content
15,921,793 members
Home / Discussions / C#
   

C#

 
AnswerRe: Urgent Help Required Pin
Sathesh Sakthivel16-Jul-07 4:20
Sathesh Sakthivel16-Jul-07 4:20 
GeneralRe: Urgent Help Required Pin
Vasudevan Deepak Kumar16-Jul-07 6:11
Vasudevan Deepak Kumar16-Jul-07 6:11 
AnswerRe: Urgent Help Required Pin
originSH16-Jul-07 4:22
originSH16-Jul-07 4:22 
GeneralRe: Urgent Help Required Pin
Vasudevan Deepak Kumar16-Jul-07 6:11
Vasudevan Deepak Kumar16-Jul-07 6:11 
AnswerI wish I could ban you.... Pin
leckey16-Jul-07 6:32
leckey16-Jul-07 6:32 
GeneralRe: I wish I could ban you.... Pin
Dave Kreskowiak16-Jul-07 7:16
mveDave Kreskowiak16-Jul-07 7:16 
GeneralRe: I wish I could ban you.... Pin
Vasudevan Deepak Kumar16-Jul-07 7:49
Vasudevan Deepak Kumar16-Jul-07 7:49 
GeneralRe: I wish I could ban you.... Pin
leckey16-Jul-07 9:02
leckey16-Jul-07 9:02 
GeneralRe: I wish I could ban you.... Pin
Dave Kreskowiak16-Jul-07 9:59
mveDave Kreskowiak16-Jul-07 9:59 
GeneralRe: I wish I could ban you.... Pin
Malcolm Smart16-Jul-07 10:06
Malcolm Smart16-Jul-07 10:06 
GeneralRe: I wish I could ban you.... Pin
leckey16-Jul-07 10:37
leckey16-Jul-07 10:37 
AnswerRe: Urgent Help Required Pin
Vasudevan Deepak Kumar16-Jul-07 7:48
Vasudevan Deepak Kumar16-Jul-07 7:48 
AnswerRe: Urgent Help Required Pin
Bert delaVega17-Jul-07 5:12
Bert delaVega17-Jul-07 5:12 
GeneralRe: Urgent Help Required Pin
Paul Conrad23-Dec-07 15:06
professionalPaul Conrad23-Dec-07 15:06 
QuestionHow to call a javascript function onunload Pin
Exelioindia16-Jul-07 3:45
Exelioindia16-Jul-07 3:45 
QuestionCan any one help me with (How to export a gridview to Excel) Pin
ku3_ku16-Jul-07 3:44
ku3_ku16-Jul-07 3:44 
Question5 Errors Pin
Xmen Real 16-Jul-07 3:41
professional Xmen Real 16-Jul-07 3:41 
string seth;
     bool anm, beh, st, en;
     StreamReader a = new StreamReader(".\\Format.cfg");
     while (a.Peek != -1)
     {
         seth = a.ReadLine;
         if (seth.Trim.Length != 0)
         {
             if (seth.Trim = "ABC")
             {
                 anm = true;
             }
             else if (seth.Trim = "XYZ")
             {
                 st = true;
             }
         }

     }

these codes look pretty but have 5 errors
1.Operator '!=' cannot be applied to operands of type 'method group' and 'int'
2.Cannot convert method group 'ReadLine' to non-delegate type 'string'. Did you intend to invoke the method?
3.'string.Trim(params char[])' is a 'method', which is not valid in the given context
4.Cannot assign to 'Trim' because it is a 'method group'
5.Cannot assign to 'Trim' because it is a 'method group'

i tried lots of times and did as i could

i hope here is someone who can solve it
thanks
AnswerRe: 5 Errors Pin
Pete O'Hanlon16-Jul-07 4:02
mvePete O'Hanlon16-Jul-07 4:02 
AnswerRe: 5 Errors Pin
mav.northwind16-Jul-07 5:04
mav.northwind16-Jul-07 5:04 
GeneralRe: 5 Errors [modified] Pin
Xmen Real 16-Jul-07 6:34
professional Xmen Real 16-Jul-07 6:34 
GeneralRe: 5 Errors Pin
Dan Neely16-Jul-07 6:49
Dan Neely16-Jul-07 6:49 
GeneralRe: 5 Errors Pin
Xmen Real 16-Jul-07 18:02
professional Xmen Real 16-Jul-07 18:02 
GeneralRe: 5 Errors Pin
Xmen Real 16-Jul-07 18:39
professional Xmen Real 16-Jul-07 18:39 
GeneralRe: 5 Errors Pin
Pete O'Hanlon17-Jul-07 10:49
mvePete O'Hanlon17-Jul-07 10:49 
GeneralRe: 5 Errors Pin
Xmen Real 17-Jul-07 14:52
professional Xmen Real 17-Jul-07 14:52 

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.