kyanuk1

Invalid Cast on field

Discussion created by kyanuk1 on Oct 10, 2012
Latest reply on Oct 11, 2012 by Neil
Hello;

I am trying to compare a double field:

if ((double)_feature.get_Value(_feature.Fields.FindField("MYFIELD")) > 8.33)


And I am getting an invalid cast error.

I used the same logic before in my code, and I can't quite figure out why this is not letting me do this.


Thanks

Outcomes