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
I have tried a long time to realize this thing.