local z z = 0 ? empty(x) && returns .T. and x = 0 x = 1-1 ? empty(x) && returns .T. and x = 0but Marvin's little calc example which results in a zero value returns .F. on the empty test. Obviously there is a rounding issue internal to VFP. Check this:
* Marvins code: * set variables a= -1 b= -0.1 c= 1 d= 0.1 * do the calc x= a+b+c+d ? empty(x) && x is zero but empty() returns .f. release all * set variables a= -1 b= -0.1 c= 1 d= 0.1 * now reverse the calc order x= d+c+b+a ? empty(x) && x is still zero but empty() now returns .t. !>Hi Jos,