News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Editing a line shape

Started by bernd, June 02, 2016, 02:22:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bernd

Dear all,
I try my first steps in Visio (2010) programming and need some support..
I declared some props behind a line mastershape. One prop is named "Funktionsart". Depending on the value behind this prop the style of the line should change..
The Code in the shapesheet.lineformat is:   
=IF(Prop.Funktionsart="Schädliche Funktion","4","1")
This works exaktly one time.. but not after changing the "Funktionsart" back to another value..

Perhaps it is simple? What is my mistake?

Thank you in advance for your support..
Kind regards, Bernd

Surrogate

Hi,

for compare strings use STRSAME function
QuoteIF(strsame(Prop.Funktionsart,"Schädliche Funktion"),"4","1")

bernd

 :)  Works - Thank you very much !!

Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 187 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1055KB.
Tokens: post-login.
Cache hits: 13: 0.00118s for 26,766 bytes (show)
Cache misses: 2: (show)
Queries used: 16.

[Show Queries]