Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > Using Siebel VB > About Data Types > VariantsTo define a variable that contains any type of data, you can write code that uses the variant data type. To identify the type of data that the variable currently contains, Siebel VB stores a tag with the variant data. To examine this tag, you can use the VarType function. Table 5 describes the types of values that a variant can contain.
If you define a variant that contains no data, then Siebel VB defaults the type to Empty. It does the following:
You can use the IsEmpty statement to determine if a variant is empty. For more information, see Is Variable Set Method. A null variant does not include data. It only represents a result that is not valid or that is ambiguous. You can use the IsNull statement to determine if a variant contains a null value. Null indicates that a variant is not set. For more information, see Is Variable Null Method. |
Siebel VB Language Reference | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |