General information
Category:
Coding, syntax & commands
Title:
DATETIME() Coding in VFP5.0
Can anyone tell me why the following code used to work (under VFP50) and now, all of a sudden, gives me an error message "Operator/operandi mismatch" ? The underlying field is formatted for datetime and I haven't changed anything else (that I'm aware of) to cause this sudden refusal to work syndrome! Century is set on. Thanks in advance.
IF !EMPTY(THIS.Value) < DATETIME()
= MESSAGEBOX("You need to enter a VALID date or time",1,"ERROR MESSAGE")
RETURN .F.
ELSE
RETURN .T.
ENDIF
Linda
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only