VarErrorArgMissing Variable

Version 6 (134a), 7.0

 

A Variant constant initialized to an error type (vtError) and scode DISP_E_PARAMNOTFOUND indicating that no argument was passed to a parameter of Variant type.

Value

vtError with error code DISP_E_PARAMNOTFOUND (0x80020004L, defined in winerror.h)

Type

Variant Public Const

Comments

Default value of an optional variant parameter.

Example

The following example shows a procedure used to output an HTML table cell.  The optional variant parameter if not passed, will print a cell with "-" :

 

Procedure AddTableCell( vrOptional: [Val] Variant = VarErrorArgMissing)

{

if vrOptional=VarErrorArgMissing

vrOptional="-"

endif

print "<TD>";vrOptional

}

See Also

Variant, VarEmpty