Vfp 8 and higher has NVL(temp.sum_ynet, 0) Prior to 8: n_v1 = iif(ISNULL(temp.sum_ynet), 0, temp.sum_ynet)
-----Original Message----- From: Carl Lindner Sent: Thursday, January 15, 2009 12:40 PM Somehow I have always avoided or worked my way around this issue, but.. select sum(ynet) into cursor temp where.. returns .NULL. But I want a result of zero. I tried, n_v1 = iif(temp.sum_ynet = .NULL. , 0, temp.sum_ynet) but that returns .NULL. How do I spot the .NULL. and get n_v1 = 0? Thanks, Carl Lindner _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/000901c97738$b73caa50$25b5fe...@com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

