Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty() vs 2 quotes
Message
From
21/10/2011 10:58:22
 
 
To
21/10/2011 05:16:59
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01526798
Message ID:
01527047
Views:
66
>>>>You can use
>>>>
>>>>update States set State = 'SP' where Len(State) = 0 && Empty state
>>>
>>>That will not work, as all fields will have the length of the field, you need len(alltrim(State)) = 0, but I would rather use empty(State)
>>
>>In this case EMPTY(State) should work (assuming State is not a memo field).
>
>Empty() works on any type of field or expression, that's the beauty of it. Even memos.

Yupp, only marred by erroring out on objects...
Previous
Reply
Map
View

Click here to load this message in the networking platform