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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't seem to find function like empty()

Status
Not open for further replies.

TonyScarpelli

Programmer
Jan 23, 2003
361
0
0
US
In FoxPro a function called empty(fieldname) will return a boolean if the field is an empty string, all spaces, 0, etc.

Is there something in CR that is similar?

The closest I can come to is to build one like this:
Length (Trim ({pur_head.Notes})) = 0

Thanks.


Tony Scarpelli
Clinical Engineering Dept.
Maine Medical Center
Portland, Maine 04102
 
But doesn't IsNull() just check for <null> and not for multiple spaces or a numeric 0?

Thanks


Tony Scarpelli
Clinical Engineering Dept.
Maine Medical Center
Portland, Maine 04102
 
For strings:

isnull({table.string}) or
trim({table.string}) = ""

For numbers:

isnull{table.number})

-LB

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top