Using a Fixed List in Custom Properties

M

MikeM

I put a variable Prop.Sex in Custom Properties, with ="M;F". In trying to use
the property, I'm getting nowhere. I want to change the line color of the
shape with this property, so I enter, for line color,

=if(Prop.Sex="M",3,4) -- or whatever colors I choose.

However, when I change the sex, the line color doesn't change.
 
C

Chris Roth [MVP]

M

MikeM

Thanks, Chris. Solved the problem!!

Mike

Chris Roth said:
String comparisons in Visio's ShapeSheet are not obvious, and you can't just
use "=". Don't feel bad about missing this, it's black-magic-obscurity.

You need to use the StrSame function, i.e.: If(StrSame(Prop.Sex, "M"), true,
false)

--
Hope this helps,

Chris Roth
Visio MVP

Free Visio shapes:
http://www.visguy.com/category/shapes
Visio programming info:
http://www.visguy.com/category/programming/
Other Visio resources:
http://www.visguy.com/visio-links/
 

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