Weird search result

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Nov 4 20:42:15 CST 2004


On 11/4/04 4:54 PM, "Florian Bogeschdorfer" <fb at memedia.de> wrote:

Hi Florian,

> Hi Ruslan,
> 
> I have recently added a change flag to my tables (kTypeBoolean) and testing
> around I did this:
> 
> pCursor=VALselectReturnCursor("SELECT * FROM KUNDENTable WHERE changed=3")
> 
> Of course 'changed' can't be 3, since it is boolean, but I get all records
> as a search result...
> 
> No valentinaerror() either.

Actually error is not expected here.

In C++ exists rule:
    what is not ZERO it is TRUE.
    only ZERO is FALSE.

It is strange that it returns all records.

I hope that if you use = 1   it works correct, yes?


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------




More information about the Valentina mailing list