Author Topic: Remove tag files with a macro?  (Read 3267 times)

loslendos

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Remove tag files with a macro?
« on: January 20, 2009, 08:14:22 am »
Hi

Im Working on different Macros in Slickedit 9
I have made lot of macros and all works fine :-)

But!
How can i delete a tag database file with a macro?
Add a db file ist easy , only use set('VSLICKTAGS=c:\.....tags.vtg') and the tag db is loaded and available in the ->Tools->Tag Files Dialog.

But if I run set('VSLICKTAGS=...') angain it only adds the new db file and let the old one open.

I have searche for solutions in all standard macros but nothing found.
For example, if i use tag_close_db the file is not deleted in the ->Tools->Tag Files Dialog.

Can anybody help me?

« Last Edit: January 20, 2009, 10:25:27 am by loslendos »

loslendos

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Re: Remove tag files with a macro?
« Reply #1 on: January 21, 2009, 06:58:42 am »
Hi, found the solution!

The macro tags.e has a usefull function:

/* remove all c tag database files */
_set_listvar('def-tagfiles-c',"")

or

/* set one ore more c tag database files */
_set_listvar('def-tagfiles-c',"c:\db1.... ; c:\db2.....")

finaly

/* refresh data (modify vslick.sta) */
_config_modify|=CFGMODIFY_DEFDATA;