gmplArgumentStatement

Argument Statement Summary

Argument is a terminal, declaration statement that occurs within method, accessor, and event statements. It declares a calling argument of its parent.


The attributes of the Argument statement are as follows:


Attribute Description
IdThis attribute specifies the identifier of the argument. It must be unique in so far as the other arguments in the method are concerned. It is not case sensitive.
TypeThis attribute is a Type attribute as discussed on the Declaration page. It specifies the type of the argument.
StatusThis attribute is the Status attribute as discussed on the Declaration page. It specifies the various context flags to be associated with the argument.
OptionalThis string attribute specifies that the argument is optional in calls to the method and what the default value should be used to replace the missing argument. Its possible settings are below.
NetNameThis attribute is the identifier of the argument to be used when declaring or referring to it in the target language.
MigNameThis attribute is identical to NetName. If both are used in the declaration the Migname takes precedence.
MigStatusThis attribute is a MigStatus attribute as discussed on the Declaration page. It contains generalized migration settings for the argument.
ChangedThis is an On/Off flag attribute. The On setting sets the Changed context flag On. This means that in processing the source code the compiler determined that the value of the argument was being changed. This flag is later used in by the algorithm that assigns arguments ByVal calling status.
MigPatternThis string attribute associates a surface pattern string with code references to the argument. See the Patterns page for details on the content of pattern strings. It is equivalent to the All pattern.
CshPatternThis string attribute associates a surface pattern string with code references to the argument. See the Patterns page for details on the content of pattern strings. It is equivalent to the Csh pattern.
VbnPatternThis string attribute associates a surface pattern string with code references to the argument. See the Patterns page for details on the content of pattern strings. It is equivalent to the Vbn pattern.
OverloadThis string attribute specifies a list of legacy platform types to be used in declaring overloads of the parent method for the argument.
GenericThis is an On/Off flag that specifies that the method should declare the parent method as using a generic type for the argument.

The Optional attribute can have the following entries:


Entry Replacement value supplied
DEF.MissingZero0
DEF.MinusOne-1
DEF.MoveTop0
DEF.MoveWidth0
DEF.MoveHeight0
DEF.TypeMissingType.Missing
DEF.Overloadno value supplied
DEF.EmptyStringString.Empty
DEF.NullObjectNothing or null
RefZeroObjref objZero
DoubleQuote""
DateTimeNew DateTime(0) or DateTime.MinValue
DefaultThe zero initialization value of the type of the argument
stringstring

The script errors associated with the Argument statement are as follows:


Error Description
1135Argument command missing required id attribute.
1136Unable to store argument vector: %1d
1137Argument command missing required type attribute.
1138Argument status [%1d] is not defined.


Table of Contents