How to remove filter

Hi!

I've got a 3state button with

'Flat on
Set LAYOUT=remember
Set VIEW=Details
Set FLATVIEW=MixedNoFolders

and

'Flat off
Set FLATVIEW=Off
Set LAYOUT=restore

Problem:
When i click Flat on, type a searchstring in the lister, switch back to flat off, the lister is empty.

Question:
How do i remove the search, so that after click all files are showing again?

Thanks in advance

See the Clear all Filters part of this post.

You probably won't need to include all of those commands; just whichever one clears the filter that you've used.

[quote="nudel"]See the Clear all Filters part of this post.

You probably won't need to include all of those commands; just whichever one clears the filter that you've used.[/quote]

Hi nudel!

Set VIEWFILTER="" do the job.

Thanks for your hint.