DIAMP PDM AB

Description of usage of the DIAMP_PDM_AB plug in for PDM.

The data will be extracted from comment lines in procdures and methods. There is also a external source available. See description. Please note that the "main program" of a program fileneed to be declared as followed in external source table: CLassLoc="filename" class="" Objname="MAIN PROGRAM"

This plug in enables the use of "tag" style documention for methods and procedures. The "prefix" style documentation will be kept. Both styles may be mixed.

This file lists special options of this plug in. Common options will be at _pdm_ab.html.

Following elements will be defined for use. They can be altered in the "Parameters" form of the plug in. The "tag" is the same text as the "prefix". The "tag" is not case sensititve.
Element Default Remarks
Parameters params On the "prefix" version the description of a parameter will be like:
PARAMS params_nameByRef Direction Type "Short description"
PARAMS_params_name long description
PARAMS_params_name long description continued
The function of the first line will be like the function of the attributes in the tag.
tag Syntax:
<paramsname="Word" [type="Word"] [byref="1"] [Dir="word"] [InB="nn"] [outb="nn"] >
 [<short> Text </short>]
 [<detail> Text </detail>]
</params>
Attributes of the tag:
Attribut Optional Description
name No Parameter Name. One word to describe
type Yes Data type of parameter. One word to describe
byref Yes Value="1" means Parameter is handled "By Reference"
dir Yes Direction of Parameter. One word to describe.
Default: "Input".
inb Yes Number of opening brackets "[",
marking a parameter as optional infront the parameter. Max 26
outb Yes Number of closing brackets "]",
marking a parameter as optional. Max 26
Only the number of brackets preaviously opened will be displayed.
On the last parameter all brackets will be closed by default.
Short description will be in <short> element within the parameters element. Short description may not use formated text <xhtml> tags.
Detail description will be in <detail> element within the parameters element. Detail descriptionen uses formated text with links. Parameters will be displayed in two sections.
  • First a section that gives a short view over the usage of the method/procedure.
    This section will use the "DIAMP_PDM_AB_Syntax" CSS class. Parameters will be linked to the
  • Parameters section, where each parameter will get a closer description.
    This section will use the "DIAMP_PDM_AB_Params" CSS class and subclasses.
Parameters will be used in the order of occurence.
Return value retval On the "prefix" version there will be a formatable description of the return value.
On the "tag" version an optional "type" attribut will be available in the <return> tag.
tag Syntax:
<retval [type="Word"]>
 Text
</retval>
This Element will use the "DIAMP_PDM_AB_RetVal" CSS class and subclasses to display the type. The text will be in the "DIAMP_PDM_AB_Body" CSS class within the "DIAMP_PDM_AB_RetVal" CSS class.
 
Link to a parameter pdmpara Creates a link to a parameter of the current method / procedure. The parameter will be displayed as defined in the name attribut of the Parameter tag.
tag Syntax:
<pdmparanum="number" />
Attribute of the tag
Attribut Descritption
num Runing number of the parameter. No leading zeros
A special number is 0. This will link to the return value, if one is defined
Only defined parameters or 0 will be transformed, other numbers will remain as a error message.
</span>

Example

Example "prefix" style:

*!* DOC_START
*!* DESCR This function emulates VFP <expr>STREXTRACT</expr> for versions below VFP 7.0
*!* DESCR The function will be disabled in Version 7 and beyond using #IF
*!* Example <code>
*!* Example TEXT lcText NOSHOW
*!* Example <short>Specify the type of controls <i>placed<i> on the search.</short>
*!* Example ENDTEXT
*!* Example lcExmaple = STREXTRACT(lcText,"<i>","</i>") &&returns placed
*!* Example </code>
*!* PARAMS tcSearchExpression ByVal IN Character Specifies the string to search.
*!* DOC_END

Example "tag" style:

*!* DOC_START
*!* <descr>
*!* This function emulates VFP <expr>STREXTRACT</expr> for versions below VFP 7.0
*!* The function will be disabled in Version 7 and beyond using #IF
*!* </descr>
*!* <example><code>
*!* TEXT lcText NOSHOW
*!* <short>Specify the type of controls <i>placed<i> on the search.</short>
*!* ENDTEXT
*!* lcExmaple = STREXTRACT(lcText,"<i>","</i>") &&returns placed
*!* </code>
*!* </example>
*!* <params name="tcSearchExpression" direction="IN" type="Character">
*!* <short>Specifies the string to search.</short>
*!* </params>
*!* DOC_END

Example mixed style:

*!* DOC_START
*!* <descr>
*!* This function emulates VFP <expr>STREXTRACT</expr> for versions below VFP 7.0</descr>
*!* DESCR The function will be disabled in Version 7 and beyond using #IF
*!* <example><code>
*!* TEXT lcText NOSHOW
*!* <short>Specify the type of controls <i>placed<i> on the search.</short>
*!* ENDTEXT
*!* lcExmaple = STREXTRACT(lcText,"<i>","</i>") &&returns placed
*!* </code></example>
*!* PARAMS tcSearchExpression ByVal IN Character Specifies the string to search.
*!* DOC_END

©2004 Agnes die Beste