Strange Visio behavior (run time VS debug)

J

jasper

Hi all,

I've come across something very strange recently. I am currently
working on a multi-user program which also contains a proces modelling
module. This module uses Visio for graphical representation of the
proces structure diagrams.

The diagrams are generated on demand form a database. Changed made in
the diagrams are written back to the database. One of the symbols used
in these diagrams is an arrow which has a textlabel. These labels can
be moved in the Visio environment (PinX and PinY) and the changes are
written to the DB.

The problem occurs when a diagram is opened and the posititons of
these labels have to be set. First I retrieve the X and Y position
from the database. Then I change the TxtPinX and TxtPinY cells with
the following code (real basic):

transfer.cells("TxtPinX") = x
transfer.cells("TxtPinY") = y

Now for the weird part: When I let Visio execute the code the labels
end up in all kinds of weird places. Yet when I debug the code (step
by step), the labels are positioned in the right place! This is the
first time i've encountered such a strange difference. Does anybody
know what's going on?

Thanx in advance.

J. Simmer
 
A

Al Edlund

one of the challanges of co-ordinating changes between processes, especially
on two different applications, is the question of timing (i.e. one process
may not have completed before we charge off in our code to do some more with
it). I try to put a lot of 'doevents' in my code so that the processes can
stay in sync.
Al
 

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