Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EVALUATE not support null parameter
Message
From
24/10/2003 04:34:43
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00841002
Message ID:
00841977
Views:
26
Hi Sorin,

------------
Case 2.
sExp = NULL - is an expression only as "sExp = NULL" where the text string expresses that sExp = NULL, IOW the expression is that sExp is undefined. NULL is a value, not an expression.
Therefore, only EVALUATE("sExp = NULL") makes sense. EVALUATE(NULL) does not make sense => ERROR.
------------

This is a general
This is the interpretation made from the VFPT.

My interpretation is of general type:

In a language that supports the NULL,
whichever function with all the null parameters must give back:
- or a predefined value
- or NULL

Put NULL on a optional parameters or not put a value on it, is equal.

In fact
? DATE(null,null,null)
? TIME(null)
? DATETIME(null,null,null,null,null,null)
are correct.

Example:
* these simple VFP functions not support NULL
? ADDBS(null)
? QUARTER(null , null) && but WEEK(null,null,null) yes
? EVALUATE(null)
? ALIAS(null)
? SELECT(null)
? SYS(null)
? FKLABEL(null)
.....
For me, SQL Server support NULL.

On SQL Server exists a native function that not support all NULL parameters ?

Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform