Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > New OperatorThe New operator allocates and initializes a new COM object of the named class. SyntaxSet objectVar = New className ReturnsUsageIn the Dim statement, New marks objectVar so that a new object is allocated and initialized when objectVar is first used. If objectVar is not referenced, then no new object is allocated. NOTE: An object variable that was declared with New allocates a second object if objectVar is Set to Nothing and referenced again. See AlsoCreateObject Function |
Siebel VB Language Reference |