Results 1 to 2 of 2

Thread: [RESOLVED] [2005] Problem with If statement and dgv

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395

    Resolved [RESOLVED] [2005] Problem with If statement and dgv

    Greetings

    i have a dgv with a checkboxcolumn

    When i try to run my code i get a compilererror "BC30038"

    the statement are (cells(4) contains the checkbox)

    Code:
    if myRow.cells(4).value = true then
    the compiler message =
    "Option Strict On" prohibits operands of type Object for operator '<operatorname>'

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395

    Re: [2005] Problem with If statement and dgv

    Code:
    if cbool(myRow.cells(4).value) = true then
    did the job

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