yap - INSTR() is a perfect example of why NOT 0 is a great definition of TRUE. Maybe great is NOT a good word ... usefull would be a better word. I guess it could also be coded as:

code:
if instr("abc","b") > 0
; ...
endif

all the more reason why I think a 1 is more TRUE than -1 is. And even more reason why Ruud should build TRUE and FALSE into the language (just like almost every other language one can name) ala: @TRUE and @FALSE macros. I mean, when coding a UDF that returns a boolean, wouldn't it be more convenient (and standardized) if we could just say this:

code:
return @TRUE

Then for those that like to code both sides of the expression, they can just say this:

code:
if $rs = @TRUE
; ...
endif



[ 01. November 2002, 21:09: Message edited by: Shawn ]