locked
null comparison not working for reference type RRS feed

  • Question

  • Hello All,

    I have a basic if statement with this vb expression:

    AgentToAssign Is Not Nothing

    Yet workflow believes AgentToAssign to be an int, or at least a value type. I'm positive it isn't, the following comparison actualy works:

    AgentToAssign.PK = ClaimAgent.PK

    Yet I continue to get the following validation error:

    Compiler error encountered processing expression AgentToAssign Is Not Nothing. Is operation does not accept operrands of type integer. Operands must be reference or nullable types.

    Any idea why it believes my object to be some sort of value type?

    Thanks Everyone,

    Ryan

     

    Thursday, August 18, 2011 1:18 PM

Answers