Sign up for a WebBoard account Sign Up Keyword Search Search Calendar Calendar More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Author Message
Malcolm Cook

Malcolm Cook

Total Messages 5

Subject:syntax of %DiagramProp sought

I can't get this macro to work (3.5.2)

Anyone got syntax or code fragment that works for them?

Thanks!

mcook@dna.com


Posted: 08 Aug 2001 05:14 PM
Left Button SpacerSend user an email email|View user's profile profileRight Button Spacer
 
 
(Deleted User)

(Deleted User)

Subject:syntax of %DiagramProp sought

Hi

If you have defined an udp on the diagram, in my case it is GenerateXMLScript.
If the udp is different from No then I generate some XML
%If (%!=(%DiagramProp(GenerateXMLScript),No)) {....}

Uffe


Posted: 09 Aug 2001 03:57 AM
 
 
 
Garry Gramm

Garry Gramm

Total Messages 477

Average Message Rating
 4 Stars 4 Stars 4 Stars 4 Stars

Subject:RE: syntax of %DiagramProp sought

>> Anyone got syntax or code fragment that works for them? <<

Hi Malcolm..

The problem withthe macro language is that documentation is often
incomoplerte, abiguous, or just plain wrong. To make matters worse, there
is no editor to 'check' the macro syntax. This can drive you nuts at times.


I have used the %diagramProp macro in referencing UDP's I have set up to do
an attribute to column name transaltion via a table lookup to determine the
'std abbreviations' to use for words in the attribute name. I workd very
well.

the syntax I use here is :

%Lookup(%DiagramProp(abbrev),%AttDomain)

where abbrev is the name of the UDP (which is a diagram level udp)

this code will lookup the attribute name (%attdomian) in the lookup file (a
text file) pointed to by the 'abbrev' udp.

Be sure that you carefull check your syntax (i.e. matching paren, comamas
etc.) as these are the things that most often cause the macro not to work.
I is particularly important where you start stringing a bunch of these
macros together and are inserting macro expressions within a parameter of
another macro.

Hope this helps.

Garry

(File attachment removed)


Posted: 14 Aug 2001 12:44 PM
Left Button SpacerSend user an email email|View user's profile profileRight Button Spacer
 
 
 
Go to previous topicPrev TopicGo to next topicNext Topic

 
go

Log In Options


Powered by WebBoard Powered by WebBoard 8
©2005 Akiva Corporation
Licensed for Commercial Use