New (ProcedureInfo constructor): Difference between revisions
Jump to navigation
Jump to search
m (→Examples) |
m (→Syntax terms) |
||
Line 14: | Line 14: | ||
<tr><th><var>In</var></th> | <tr><th><var>In</var></th> | ||
<td>This required, [[Notation conventions for methods#Named members|name required]] parameter is a string that specifies the file or group that contains the procedure whose information is being extracted. | <td>This required, [[Notation conventions for methods#Named members|name required]] parameter is a string that specifies the file or group that contains the procedure whose information is being extracted. See the [[#Usage notes|"Usage notes"]] below.</td></tr> | ||
<tr><th><var>Name</var></th> | <tr><th><var>Name</var></th> |
Revision as of 16:04, 25 July 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. See the "Usage notes" below. |
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