proc


The BMC Software DEFTAG expects the proc

Syntax


proc NewProcedure (HtmlTagList HtmlFile, Int Index)

HchlFile

contains the list of all tags called by the procedure. For more information about this structure, see the Chilli Reference Manual in Section II under the heading HTML Functions.

Index

the number of tags called by the procedure.

Example

The following script excerpt of an HCHL file defines two new tags PRINT and MAILTO in its procedures and declares them then through the DEFTAG.



<SCRIPT>
   ....
   proc HandlePrint (HtmlTagList HtmlFile, int index)
        print (StrEvalAsString (HtmlFile.Tags[index].TagParams[1].TagParamValue))
   endproc

   proc HandleMailto (HtmlTagList HtmlFile, int index)
        string mailto
        mailto = StrEvalAsString (HtmlFile.Tags[index].TagParams[1].TagParamValue)
        print ("&lt;A href='mailto:" + mailto + "'>" + mailto + "&lt;/A")
   endproc
   ....
 </SCRIPT>

   <DEFTAG name=PRINT proc=HandlePrint>
   <DEFTAG name=MAILTO proc=HandleMailto>
                    

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Client Management 12.2