Actions and Custom Properties

J

JamesHall

I have a cutsom property that is a drop down list containg two options
"show;hide". I want to be able to have a option on the shapes right click
menu that allows me to toggle between the two options. I know how to create
the option on the menu but I am having trouble with the 'Action'.
I have tried using something along the lines of :

IF(STRSAME(Prop.Text,"show"),SETF("Prop.Text","hide"),SETF("Prop.Text","show"))

this isn't working though. Any ideas would be greatly appreciated.

Thanks

James
 
D

David Parker [Visio MVP]

Try:

IF(STRSAME(Prop.Text,"show"),SETF(GetRef(Prop.Text),"""hide"""),SETF(GetRef(Prop.Text),"""show"""))"JamesHall" <[email protected]> wrote in messagehave a cutsom property that is a drop down list containg two options> "show;hide". I want to be able to have a option on the shapes right click> menu that allows me to toggle between the two options. I know how tocreate> the option on the menu but I am having trouble with the 'Action'.> I have tried using something along the lines of :>>IF(STRSAME(Prop.Text,"show"),SETF("Prop.Text","hide"),SETF("Prop.Text","show"))>> this isn't working though. Any ideas would be greatly appreciated.>> Thanks>> James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top