Declaring a Variant Variable

You declare a variable as a variant in the following situations:

  • If the type of the variable is not known.

  • If Siebel CRM might modify the variable type when the code runs. For example, a variant is useful for holding input from a user when valid input can include text or numbers.

You use one of the following formats to declare a variant variable:

Dim variableName
Dim variableName As Variant

Siebel VB initializes a variant variable to the Empty variant type.

For more information, see Variants.