New (ProcedureInfo constructor)

From m204wiki
Revision as of 00:08, 22 June 2012 by JAL2 (talk | contribs)
Jump to navigation Jump to search

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.

See also