Quantcast
Viewing all articles
Browse latest Browse all 75070

Macro -> Current Filter variable by heftydude - 2013-06-24

QUOTE (Kai Team @ June 24, 2013 06:56 am)
OK, that's a different story - I thought you wanted to save the filter and recall it later. We still can use SaveFilter() to retrieve the filter name, with the caveat that not all filters have names (i.e. if you set a filter on the fly vs. selecting a saved filter, the filter will not have a name).

The following code will pop up a message with the name of the active filter, if any. If the filter has no name, it will pop up a message telling you that. Image may be NSFW.
Clik here to view.
wink.gif


GSK
$Data=SaveFilter()
$FilterName=RegExData("SavedFilter=.*",$Data,1)
$FilterName=Extract($FilterName,"=",2)

IF $FilterName<>""
   MSGOK Msg=$FilterName
ELSE
   MSGOK Msg="There is no filter name"
ENDIF

That seems to be exactly what I'm looking for, but will have to tear apart what RegExData is at a later date. You rock. Thanks for these tidbits.

Viewing all articles
Browse latest Browse all 75070

Trending Articles