PC Review


Reply
Thread Tools Rate Thread

what does this code means?

 
 
=?Utf-8?B?aHV6eg==?=
Guest
Posts: n/a
 
      28th Feb 2005
int startOffset = (totalEmployees > 0) ?
(empGrid.CurrentPageIndex*empGrid.PageSize+1) : 0;

I can't find any reference to the ? syntax

any web reference would be appreciate..

many thanks
 
Reply With Quote
 
 
 
 
=?Utf-8?B?aHV6eg==?=
Guest
Posts: n/a
 
      28th Feb 2005
I done a search .. and found this.

http://msdn.microsoft.com/library/de...aloperator.asp

"huzz" wrote:

> int startOffset = (totalEmployees > 0) ?
> (empGrid.CurrentPageIndex*empGrid.PageSize+1) : 0;
>
> I can't find any reference to the ? syntax
>
> any web reference would be appreciate..
>
> many thanks

 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      28th Feb 2005
Huzz,

You mean this one?

http://msdn.microsoft.com/library/de...aloperator.asp

I hope this helps?

Cor


 
Reply With Quote
 
=?Utf-8?B?aHV6eg==?=
Guest
Posts: n/a
 
      28th Feb 2005
Thanks Cor..

"Cor Ligthert" wrote:

> Huzz,
>
> You mean this one?
>
> http://msdn.microsoft.com/library/de...aloperator.asp
>
> I hope this helps?
>
> Cor
>
>
>

 
Reply With Quote
 
cody
Guest
Posts: n/a
 
      28th Feb 2005
It is the ternary operator. It is the same as writing:

int startOffset;
if (totalEmployees > 0)
startOffset = empGrid.CurrentPageIndex*empGrid.PageSize+1;
else
startOffset = 0;

"huzz" <(E-Mail Removed)> schrieb im Newsbeitrag
news:45754FBD-62B6-4EC8-8B97-(E-Mail Removed)...
> int startOffset = (totalEmployees > 0) ?
> (empGrid.CurrentPageIndex*empGrid.PageSize+1) : 0;
>
> I can't find any reference to the ? syntax
>
> any web reference would be appreciate..
>
> many thanks



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clicking a column by means of code Zach Microsoft C# .NET 6 22nd Apr 2010 02:50 PM
Can't find this error code so don't know what it means =?Utf-8?B?Y29uZ29lcyBnaXJs?= Spyware Discussion 1 16th Oct 2006 11:04 AM
does anyone know what error code 0x800CC97 means? =?Utf-8?B?RGljaw==?= Microsoft Outlook Discussion 2 24th Mar 2005 02:52 PM
When programming with Visual Studio in code. What means the Label in code? Andreas Klemt Microsoft ASP .NET 2 14th Jan 2004 06:49 AM
can you tell me what this error code etc means!!!!!! thesoapster03@yahoo.co.uk Windows XP Performance 0 8th Dec 2003 10:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:54 PM.