>>Empty is meant for character values it seems!
>
>Not according to Help.
>
>In any event, EMPTY() was usefull for testing for the existence of an optional parameter (ie. a value other than 0 or .F.) ... but obviously not in this type of situation.
Hmm, I suspect that the help file also suggests it works with numbers but the fact that lnValue = 0 provides result inconsistent with empty(lnValue) suggests otherwise to me!
I rarely use the empty command on parameter because it makes more sense to use VARTYPE or TYPE, that way you check whether it was both passed and passed correctly at the same time.
James Beerbower
James Beerbower Enterprises
Frankfurt, Deutschland