>Sounds to me like a VFP N(1, 0) is not being interpreted as an integer, maybe some kind of floating point value instead that's not exactly equal to an integer value of 3.
>
>Just in case there might be some effect from your InList() function you could test with a direct comparison:
>
>If loRow("Type") = 3
>...
>
Thanks, I guess I will have to create a declartion for an integer, dump the datarow field value in it and use it instead in the inlist.