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

What kind of expression ISBLANK() and EMPTY() accepts? 1

Status
Not open for further replies.

IlyaRabyy

Programmer
Nov 9, 2010
568
US
Colleagues,

the subject says it!

Issuing
Code:
loca for not isblank(loc_code)
in rthe Command window results in the following error:

"Unallowed phrase/keyword in command: isblank(loc_code)"

issuing
Code:
loca for not empty(loc_code)

results in the similar error

"Unallowed phrase/keyword in command: empty(loc_code)"

Details:

Visual dBase ver. 5.7;

"loc_code" is the name of the field in a table currently opened in the currently selected work area.

What am I doing wrong?

TIA!


Regards,

Ilya
 
I'm only familiar with versions up to 5. Until then "NOT" had to be issues as ".NOT."

ISBLANK() is probably different than EMPTY() which is not in version 5.

For example, if a numeric field had previously had content or someone had previously hit Enter and a zero had been inserted into the numeric table field, it might be EMPTY() but not ISBLANK(). I hope that makes sense.
 
I tried it every way I could imageine, including NOT EMPTY("LOC_CODE") and even NOT EMPTY "ALIASNAME.LOK_CODE".
Turned out it was indeed what dbMark pointed on: it's gotta be ".NOT."!
Thank you, colleague dbMark!

Regards,

Ilya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top