>>At first, I thought the problem was with the WAIT WINDOW, and that the WAIT WINDOW would give similar errors with other functions that have zero parameters, but it is difficult to find one, that also returns a character expression. With a UDF() with no parameter, it works without a problem.
>
>It's TIMEOUT clause.
Yes, that makes sense.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)