Welcome! Log In Create A New Profile

Advanced

WD24. hFilter.

Posted by AadG 
WD24. hFilter.
September 03, 2021 02:09PM
Hi all,

I'm using hFilter to show special content in a table. Is there a way to catch an empty filter, so the filter doesn't give any values back.
I use hfFilter together with TableDisplay(Table,TaInit).

Best regards,

AadG
Re: WD24. hFilter.
September 03, 2021 04:02PM
Hi AadG,

just use the filter to filter for a value that will never ever appear in that database item.

Kind regards,
Guenter Predl
office@windev.at
Re: WD24. hFilter.
September 03, 2021 04:10PM
Hi Guenter,

I don't know exactly what you mean. What I want is, that when a searched value is not found during the filter, I get a message "Value not found".
and not an empty table.

Thanks for your reply.

Aad
Re: WD24. hFilter.
September 03, 2021 04:17PM
Hi, you'd have to add an

IF HReadseekFirst(YourFile, YourKey, YourFilterValue) THEN
HFilter(.....
ELSE
Info("Filter value can't be found in file!")
END

Kind regards,
Guenter Predl
office@windev.at
Re: WD24. hFilter.
September 03, 2021 04:20PM
Ok, thanks. I will look into it.

Best regards,

Aad
Re: WD24. hFilter.
September 04, 2021 12:37PM
Greeting

In my applications I have stopped using the hfilter () option, I only use sql query

[infosonline.net]
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: