Oct 27, 2003 #1 abhijit74 Programmer Oct 1, 2003 16 US Hi Folks, I want to use SetFilter function of the datawindow to specify a condition. The condition is that column value should be equal to a null. Please help me. Regards, Abhijit
Hi Folks, I want to use SetFilter function of the datawindow to specify a condition. The condition is that column value should be equal to a null. Please help me. Regards, Abhijit
Oct 27, 2003 1 #2 PowerObject Programmer Jul 30, 2002 204 US dw.SetFilter( "<col> is NULL" ) dw.Filter() --- PowerObject! ----------------------------------------- http://Groups.Yahoo.com/group/PowerObjectPowerBuilder / PFC Developers' Group Upvote 0 Downvote
dw.SetFilter( "<col> is NULL" ) dw.Filter() --- PowerObject! ----------------------------------------- http://Groups.Yahoo.com/group/PowerObjectPowerBuilder / PFC Developers' Group
Oct 27, 2003 Thread starter #3 abhijit74 Programmer Oct 1, 2003 16 US Hey PowerObject, I tried doing exactly the same thing I did this dw.SetFilter("Col1 IS NULL and Col2 <> 'N') However I observed that it gave me a datawindow "invalid function error" I am using 6.5 Cheers! Abhijit Upvote 0 Downvote
Hey PowerObject, I tried doing exactly the same thing I did this dw.SetFilter("Col1 IS NULL and Col2 <> 'N') However I observed that it gave me a datawindow "invalid function error" I am using 6.5 Cheers! Abhijit
Oct 27, 2003 #4 PowerObject Programmer Jul 30, 2002 204 US Abhijit, This should work: dw.SetFilter( "IsNull( col1 ) and col2 <> 'N'" ) dw.Filter() Just let us know if it did... --- PowerObject! ----------------------------------------- http://Groups.Yahoo.com/group/PowerObjectPowerBuilder / PFC Developers' Group Upvote 0 Downvote
Abhijit, This should work: dw.SetFilter( "IsNull( col1 ) and col2 <> 'N'" ) dw.Filter() Just let us know if it did... --- PowerObject! ----------------------------------------- http://Groups.Yahoo.com/group/PowerObjectPowerBuilder / PFC Developers' Group