Alaska Software Inc. - Re: complex filter DbSetFilter( macro) doesn't work
Username: Password:
AuthorTopic: Re: complex filter DbSetFilter( macro) doesn't work
Andreas Gehrs-Pahl

View the complete thread for this message in:

Re: complex filter DbSetFilter( macro) doesn't work
on Tue, 17 Nov 2015 11:53:51 -0500
Evert,

>.in. (replacement of $ in xBase++ ) is used because it should works better
>in a codeblock for DbSetFilter
>DbFilter is quit sensitive. I noticed it's better always to use an alias.

I'm not sure how ".in." could work better, if it isn't even part of the 
programming language (and will be replaced with "$" by the pre-processor 
before compilation anyway).

>My problem how do I join those filters from the several getinput[] to 1 
>filterexpression for the DbSetFilter codeblock?

Your (original) code looks pretty much how I would expect it, so you already 
know how to do that. You (originally) wrote that you received a runtime 
error, which (apparently) was caused by using the ".in." statement in your 
filter clause, which (apparently) couldn't be macro-compiled at runtime.

What happens if you replace all occurrences of the ".in." statement in your 
code with the "$" operator? Do you still get a runtime error?

You never told us what the actually error was or posted any code for us to 
reproduce the error, so there really is nothing more that any of us can do 
to help you.

Hope this helps anyway,

Andreas

Andreas Gehrs-Pahl
Absolute Software, LLC

phone: (989) 723-9927
email: Andreas.GP@Charter.net
web:   http://www.Aerospace-History.net