Results 1 to 1 of 1

Thread: [RESOLVED] Select Case <>0?

  1. #1

    Thread Starter
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Resolved [RESOLVED] Select Case <>0?

    I'm trying to determine if a string contains a specific piece of text. If it does, then I need to change the forecolor of a ListItem to a predefined color. This is how I'm trying to do it, but nothing happens. No errors or anything.

    Code:
    Dim Found
        Select Case Found <> 0
            Case Found = InStr(1, thisPlate.plate, "Sex Offender")
                itm.ForeColor = &HFF&
        End Select
    I could define a ton of variables and use IFs to figure it out, but I want to make it easier for me with Select Case.

    Any ideas?

    *EDIT: Never mind. It works. The condition I was checking was wrong.
    Last edited by weirddemon; Nov 9th, 2012 at 03:21 PM.
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

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