Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

caliber RM 2006, Document factory, $Calculate command

14 views
Skip to first unread message

mboi...@free.fr

unread,
May 23, 2007, 3:38:51 AM5/23/07
to
Hi

Yesterday I've found that the $Calculate command, which is supposed
to perfom simple calculus accepts undocumented functions like
"IIF"or "Choose" This functions seem to be thoses of the Visuall
Basic language.

It seems to be a very powerfull tool in order to generate complex
documents with styles and hierarchy .

Does somebody already use these functions or have documentations
aboutit ? Are all standard vba functions allowed? Is it safe to use
these functions for big documents?

thanks for answers.

For instance the following works fine in order to build a document
with a different style for each level of requirement.

Put the following in a ".dot" document , put a different style for
each <<TitreX>> and use it a as Document factory model:

<<project>>

$Begin_Section $Calculate{
IIF(hierarchy not like '%.%' , hierarchy +name ,'') as Titre1,
IIF(hierarchy like '%.%' and hierarchy not like '%.%.%' , hierarchy +
name ,'') as Titre2,
IIF(hierarchy like '%.%.%' and hierarchy not like '%.%.%.%' ,
hierarchy +name ,'') as Titre3,
IIF(hierarchy like '%.%.%.%' and hierarchy not like '%.%.%.%.%' ,
hierarchy +name ,'') as Titre4,
IIF(hierarchy like '%.%.%.%.%' and hierarchy not like '%.%.%.%.%.%' ,
hierarchy +name ,'') as Titre5,
IIF(hierarchy like '%.%.%.%.%.%' and hierarchy not like '%.%.%.%.%.%.
%' , hierarchy + name ,'') as Titre6,
IIF(hierarchy like '%.%.%.%.%.%.%', hierarchy + name ,'') as Titre7
}
$INDENTION_LEVEL{20}
$INDENTION_SIZE{0,1}

<<Titre1>> <<Titre2>> <<Titre3>> <<Titre4>> <<Titre5>> <<Titre6>>
<<Titre7>>
<<description>>
$END_Section


Marc

oraclevsmicrosoft.blogspot.com

roc

unread,
Jul 17, 2007, 11:32:20 PM7/17/07
to
good news!

I have tried a long time to realize this thing.

0 new messages