Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check Numeric
Message
From
08/09/2004 04:40:32
 
 
To
08/09/2004 04:28:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00939224
Message ID:
00940201
Views:
15
>
>Note that if the arguement of empty() is a Memo containing space(4), it will return FALSE whereas a char field of space(4) would return TRUE
>

>
>This is a bug.

Well, then it is a documented one. It surprised me at first, but then, it's not that surprising at all.
Char fields are right padded with blanks. So empty() does not know whether you inserted space(0) or space(4) for char fields. But for memo fields it does.

It's all described in the help.

Still, it's tricky
create cursor ppp(ppp M)
insert into ppp (ppp) values (space(4))
?empty(ppp) && FALSE
qqq=ppp
?empty(qqq)  && TRUE  !!
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform