Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Null FunctionThis standard VB function sets a variant variable to the Null value. SyntaxReturnsUsageNull is used to set a variant variable to the Null value explicitly, as follows: Note that variants are initialized by Basic to the empty value, which is different from the Null value. ExampleThis example asks for ten test score values and calculates the average. If any score is negative, the value is set to Null. Then IsNull is used to reduce the total count of scores (originally 10) to just those with positive values before calculating the average. Sub Button_Click See Also |
Siebel VB Language Reference |