Thanks....

Nothing equals null.....  Even I can remember that........

Carl

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Tracy Pearson
Sent: Thursday, January 15, 2009 12:43 PM
To: [email protected]
Subject: RE: iif and .NULL.

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 



[excessive quoting removed by server]

_______________________________________________
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/000001c9773c$92ab4210$b801c6...@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.

Reply via email to