Description

Add a user defined variable to be used in this report.

Return Type

None  

Syntax

object.Add Name, [datatype], [Parameters]

The Add Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McVariables.
NameRequired. A String value.
datatypeOptional. A mcDataType enumeration, as described in settings.
ParametersOptional. A Variant value.

Settings

The settings for datatype are:

ConstantValueDescription
 mcdtText268435456

A text string.

 mcdtNumeric134217728

A floating point value.

 mcdtDate67108872

A localized date.

 mcdtRTF16777216

A string containing RTF code.

 mcdtHTML8388608

A string containing HTML code.

 mcdtBarcode1073741824

The variable's text is converting to a bar code.

 mcdtDrawing536870912

The variable contains the name of a graphic file.

 mcdtMetafile536870913

The variable contains a metafile handle.

 mcdtBitmap536870916

The variable contains a bitmap handle.

 mcdtIcon536870917

The variable contains an icon handle.

 mcdtEMetafile536870918

The variable contains an enhanced metafile handle.

 mcdtDIB536870919

The variable contains a DIB handle.

Remarks

Name needs to be unique amongst the collection of all variables and fields.