CALLTHIS function to repeat procedure

I

IMeng

I am having trouble with the syntax to call a procedure a variable amount of
times.

Is it possible to use CALLTHIS("") and repeat it a user-defined amount of
times?

I am using:
User.A= SETF("User.B",Prop.userdefined)
User.B= "4"
CALLTHIS("Procedure")

I'd like to just use <CALLTHIS("Procedure") * User.B> but it is not an option.
Any ideas??

Thank you,
 
J

JuneTheSecond

You can get the value of "User.B" in your "Procedure", and you can repeat
given times in your "Procedure".
 
W

wr

late call I know
there is no do..loop or for..next possible in the shapesheet
I would try the following:
1. create a custom property in one shape
2. then in another shape create a custom property and let the value of that
property be a reference to the parent shape, like Parent!Prop.OKnotOK
3. then in the third shape you have 2 user defined cells with the following
formulas
=IF(parent!Prop.OKnotOK="ok",RUNMACRO("Tekening1.Module1.myProc"),0)
=IF(child!Prop.OKnotOK="ok",RUNMACRO("Tekening1.Module1.myProc"),0)

Rene
 

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