Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's best way to check for empty datetime field?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00220605
Message ID:
00220629
Views:
25
>>>I thought EMPTY(ALLTRIM(mytable.mydatetime)) would work to check for an empty datetime field, but I guess I have to convert it first???
>>>
>>Try comparing the field to { }.
>
>Won't Empty(mytable.mydatetime) work?

EMPTY(mytable.mydatetime) should also work. You don't want the ALLTRIM function. It works on strings and a datetime value is not a string.
Steve Ruhl
CitiMortgage, Inc.
steven.ruhl@citibank.com Office
Steve@steven-ruhl.com Home
Previous
Reply
Map
View

Click here to load this message in the networking platform