Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Mon, 12 May 2008 11:12:01 -0700,    group: microsoft.public.xml.soap        back       


C# ";" character   
Hi,

What does the ";" at the end of an IF statement signify?

e.g.
try  
{
   If (strvalue <> "ABC") ; <--- 
   {
      return true;
   }
   return false;
}

Is the IF the same meaning as without the ";" at the end ?

cheers
Andrew
date: Mon, 12 May 2008 11:12:01 -0700   author:   Andrew

RE: C# ";" character   
hello Andew,

";" just means an end of statement.....

so if(x==4);
x=7;

means that  x will always assigned 7 since the first statemet after if is 
already executed. so its wrong to put ; after ifs....

jst try out a console application with the above example ..

Regards,
~VInu
"Andrew" wrote:

> Hi,
> 
> What does the ";" at the end of an IF statement signify?
> 
> e.g.
> try  
> {
>    If (strvalue <> "ABC") ; <--- 
>    {
>       return true;
>    }
>    return false;
> }
> 
> Is the IF the same meaning as without the ";" at the end ?
> 
> cheers
> Andrew
date: Tue, 13 May 2008 02:38:01 -0700   author:   Vinu

RE: C# ";" character   
thanks

"Vinu" wrote:

> 
> hello Andew,
> 
> ";" just means an end of statement.....
> 
> so if(x==4);
> x=7;
> 
> means that  x will always assigned 7 since the first statemet after if is 
> already executed. so its wrong to put ; after ifs....
> 
> jst try out a console application with the above example ..
> 
> Regards,
> ~VInu
> "Andrew" wrote:
> 
> > Hi,
> > 
> > What does the ";" at the end of an IF statement signify?
> > 
> > e.g.
> > try  
> > {
> >    If (strvalue <> "ABC") ; <--- 
> >    {
> >       return true;
> >    }
> >    return false;
> > }
> > 
> > Is the IF the same meaning as without the ";" at the end ?
> > 
> > cheers
> > Andrew
date: Tue, 13 May 2008 07:05:01 -0700   author:   Andrew

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us