Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How I handle .NULL. displays

Status
Not open for further replies.

jrumbaug

Programmer
Apr 27, 2003
90
US
Just a quick tip for fellow newbies. Working with grids and remote views, I've been struggling with displaying .NULL. values. Today I had a .NULL. date value in a grid that I could not get to go away no matter what I typed into the NULLDISPLAY property. I found a Microsoft tip that said you can set the dynamic color to white on white or blabk on black with:

Code:
 IIF(ISNULL(MyField),RGB(255,255,255),RGB(0,0,0))

But what I just learned today is my favorite.

Code:
SET NULLDISPLAY TO "NONE"

Now the word NONE appears instead of the word .NULL. No more going field to field typing in .NULL. handling info. For my application, this will do the job just fine. I hope this helps someone.

Jim Rumbaugh

 
Check also NullDisplay property of TextBox, ComboBox, EditBox, ListBox, Spinner in HELP



Borislav Borissov
 
There's also the NVL() function.

If x holds a value then NVL(x, y) will return that value. If x is null then it will return y.

NVL(x, y) is shorthand for IIF(ISNULL(x), y, x)

Geoff Franklin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top