New (ProcedureInfo constructor): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (→Usage notes) |
||
Line 30: | Line 30: | ||
<li>To provide a single display of the information of multiple procedures, you can use the <var>[[List (ProcedureInfo function)|List]]</var> method. | <li>To provide a single display of the information of multiple procedures, you can use the <var>[[List (ProcedureInfo function)|List]]</var> method. | ||
</ul> | </ul> | ||
==Examples== | |||
<p class="code"> ... | |||
%procInfo=New(name='SSLP-REQ', in='FILE MYFILE') | |||
printText {%procInfo:name} {%procInfo:lastUpdateTime('YYYYMMDDHHMISS') | |||
... </p> | |||
The statements above produce a result like: | |||
<p class="code">SSLP-REQ 20110715094616 </p> | |||
==See also== | ==See also== | ||
{{Template:ProcedureInfo:New footer}} | {{Template:ProcedureInfo:New footer}} |
Revision as of 14:56, 22 June 2012
Create a new ProcedureInfo instance (ProcedureInfo class)
[Introduced in Sirius Mods 7.8]
Syntax
%procedureInfo = [%(ProcedureInfo):]New( In= string, Name= string)
Syntax terms
%outProcedureInfo | A ProcedureInfo object variable. If the procedure identified by this method's parameters is not found, New returns a Null object. |
---|---|
[%(ProcedureInfo):] | The optional class name in parentheses denotes a Constructor. See "Usage notes", below, for more information about invoking a ProcedureInfo Constructor. |
In | This required, name required parameter is a string that specifies the file or group that contains the procedure whose information is being extracted. To access a group, use the keyword Group after In: In Group mygroup . |
Name | This required, name required, parameter is a case-sensitive string that contains the exact name of the procedure whose information is being extracted. |
Usage notes
- As described in "Using New or other Constructors", New can be invoked with no object, with an explicit class name, or with an object variable in the class, even if that object is Null:
%procInf = new %procInf = %(ProcedureInfo):new %procInf = %procInf:new
- To provide a single display of the information of multiple procedures, you can use the List method.
Examples
... %procInfo=New(name='SSLP-REQ', in='FILE MYFILE') printText {%procInfo:name} {%procInfo:lastUpdateTime('YYYYMMDDHHMISS') ...
The statements above produce a result like:
SSLP-REQ 20110715094616