Creating Global Data

C

CalgaryBob

Is there a way to create a global data structure (or variable) that is
accessible by more than 1 shape?

I would like the data to be used by several shapes, but would like to change
the data in only one place? Is this possible?

Everything I have tried just creates a new instance of data, if I change the
value of the orginal shape, the value in the assigned shapes does not change.
 
P

Paul Herber

Is there a way to create a global data structure (or variable) that is
accessible by more than 1 shape?

I would like the data to be used by several shapes, but would like to change
the data in only one place? Is this possible?

Everything I have tried just creates a new instance of data, if I change the
value of the orginal shape, the value in the assigned shapes does not change.

The page (or document) can contain Custom Properties (ShapeData) or User-defined data.
Click on the page so no shape is selected, menu Data -> Shape Data and define your data
(say, myData)..
Now in the shape insert a field as ThePage!Prop.myData.
 
C

CalgaryBob

I did try using the Shape Data Sets, but it simply created an instance of the
data at the time I applied it to the the shapes. If I went and changed the
data in the set, it did not update the shapes it was assigned to, even more,
if i tried assigning the new data, it just ignored it and kept the data
initially assigned.

But thank you for your response

Bob
 
C

CalgaryBob

Thank you for the reply Paul, I was unable to get Visio 2007 to accept the
syntax you suggested, but I did manage to edit the text fields (using shape
sheet editor) to display the shape data of another shape on the sheet. I
can't figure out what the syntax for a page number needs to be.

All is good now though, thanks

Bob
 

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