Results 1 to 4 of 4

Thread: ()?: Question

Threaded View

  1. #1

    Thread Starter
    Fanatic Member brown monkey's Avatar
    Join Date
    Jun 2004
    Location
    Cebu
    Posts
    552

    Resolved ()?: Question

    Is there something wrong in my code?
    Code:
    (i%2==0)?li.BackColor=Color.White:li.BackColor=Color.OldLace;
    BTW, li is a ListViewItem. Thank you.

    edit: The error is "Only assignment, call, increment, decrement, and new object expressions can be used as a statement"
    Last edited by brown monkey; Dec 9th, 2004 at 08:53 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width